find: Difference between revisions
mNo edit summary  | 
				mNo edit summary  | 
				||
| Line 3: | Line 3: | ||
<h2 style="color:#000066">''  | <h2 style="color:#000066">'''''array '' find  '' x'''''</h2>  | ||
| Line 9: | Line 9: | ||
'''array''': [[Array]]  | '''array''': [[Array]]  | ||
'''x''': [[Any Value]]  | '''x''': [[Any Value]]  | ||
| Line 17: | Line 18: | ||
'''Compatibility:'''  | '''Compatibility:'''  | ||
Version 2.  | Version 2.92 required.  | ||
'''Description:'''  | '''Description:'''  | ||
Returns the position of the first array element that matches x, returns -1 if not found.  | Returns the position of the first array element that matches x, returns -1 if not found.  | ||
'''Example''':  | '''Example''':  | ||
[0, 1, 2] '''find''' 1 , result is 1  | [0, 1, 2] '''find''' 1 , result is 1  | ||