find

From Bohemia Interactive Community
Revision as of 21:08, 3 July 2006 by Planck (talk | contribs)
Jump to navigation Jump to search


array find x


Operand types:

array: Array

x: Any Value

Type of returned value:

Number

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