find: Difference between revisions
mNo edit summary |
mNo edit summary |
||
Line 27: | Line 27: | ||
'''Example''': | '''Example''': | ||
[0, 1, 2] '''find''' 1 | [0, 1, 2] '''find''' 1 .... result is 1 |
mNo edit summary |
mNo edit summary |
||
Line 27: | Line 27: | ||
'''Example''': | '''Example''': | ||
[0, 1, 2] '''find''' 1 | [0, 1, 2] '''find''' 1 .... result is 1 |
Operand types:
array: Array
x: Any Value
Type of returned value:
Compatibility:
Version 2.92 required.
Description:
Returns the position of the first array element that matches x, returns -1 if not found.
Example:
[0, 1, 2] find 1 .... result is 1