Scalar FunctionsDynamic / JSON Functions
array_index_of
Return the zero-based index of the first occurrence of `lookup` in `array`, optionally starting at `start_index`.
Returns -1 when not found, or when the input is not a dynamic array.
Syntax
array_index_of(array, lookup, start_index)Parameters
Prop
Type
Returns: long
Examples
Example 1
print array_index_of(dynamic([1, 2, 3, 2]), 2)| print_0 (long) |
|---|
| 1 |