List Index Of
Pure read expression that returns the index of a value in a list. end=FIRST (default) searches from the start. end=LAST searches from the end. Returns -1 if the value is not found. Matching uses the runtime's direct equality semantics (=== / reference identity for objects).
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
list | yes | expression | array | — |
find | yes | expression | — | — |
end | no | string | enum-string | FIRST, LAST |
Notes
- Pure read expression that returns the index of a value in a list.
end=FIRST(default) searches from the start.end=LASTsearches from the end.- Returns
-1if the value is not found. - Matching uses the runtime's direct equality semantics (
===/ reference identity for objects).