Open wardweistra opened 2 years ago
The query 'abcdefg'.indexOf('bc') gives no results: https://ylboerner.github.io/Pathfinder/?fhirPath=%27abcdefg%27.indexOf(%27bc%27) However, testing if the answer is 1 does give True: https://ylboerner.github.io/Pathfinder/?fhirPath=%27abcdefg%27.indexOf(%27bc%27)=1 (testing against 0 or 2 gives False)
'abcdefg'.indexOf('bc')
It would be very helpful if Pathfinder would be explicit about when the result is an empty array, empty string, etc. Just so it's clear that's the FHIRPath output and not an error.
The query
'abcdefg'.indexOf('bc')
gives no results: https://ylboerner.github.io/Pathfinder/?fhirPath=%27abcdefg%27.indexOf(%27bc%27) However, testing if the answer is 1 does give True: https://ylboerner.github.io/Pathfinder/?fhirPath=%27abcdefg%27.indexOf(%27bc%27)=1 (testing against 0 or 2 gives False)