indexOf
Full name: taxi.stdlib.indexOf
Signature
declare extension function indexOf(source:String, valueToSearchFor:String):IntDescription
Returns the zero-based index of valueToSearchFor within source, or -1 if not found.
find { path: FilePath } as {
dotPosition: Int = path.value.indexOf('.')
}Examples
Returns the index of a substring within a string, or -1 if not found.
Try it out
Schema
Query Plan
Play with this snippet by editing it here, or edit it on Taxi Playground
Result
Query failed