List: Index Of
Return the 0-based position of the first occurrence of a needle in an input
list, or None when the needle is not found. Similar to JavaScript's
Array.prototype.indexOf, except an absent value yields None instead of
-1.
The needle can be supplied either statically via the Value parameter or
dynamically via the value input connector (the connector wins).
Example
Value: 30
Input: [10, 20, 30, 40]
Output: 2
Value: 99
Input: [10, 20, 30, 40]
Output: None
Parameters
Value
Static fallback needle used when the value input connector is not wired
or arrives empty. When unset and no input is provided, the step fails.
Input
Arrayrequired
List to search (Array or JSON array).
Value
Needle to look for. Overrides the Value parameter when wired.
Output
Result
0-based index of the first occurrence (Number), or None when the value
is absent from the list.