find: Difference between revisions
mNo edit summary  | 
				No edit summary  | 
				||
| Line 1: | Line 1: | ||
{{Command|= Comments  | |||
____________________________________________________________________________________________  | |||
| arma |= Game name  | |||
|2.92|= Game version  | |||
____________________________________________________________________________________________  | |||
| Returns the position of the first array element that matches x, returns -1 if not found. |= Description  | |||
____________________________________________________________________________________________  | |||
'''  | | array '''find''' x |= Syntax  | ||
|p1= array [[Array]] |= Parameter 1  | |||
|p2= x [[Any Value]] |= Parameter 2  | |||
| [[Number]] |= Return value  | |||
____________________________________________________________________________________________  | |||
|x1= <pre>[0, 1, 2] find 1 .... result is 1</pre> |= Example 1  | |||
____________________________________________________________________________________________  | |||
|  |= See also  | |||
}}  | |||
<h3 style="display:none">Notes</h3>  | |||
<dl class="command_description">  | |||
<!-- Note Section BEGIN -->  | |||
<!-- Note Section END -->  | |||
</dl>  | |||
<h3 style="display:none">Bottom Section</h3>  | |||
[[Category:Scripting Commands|FIND]]  | |||
[[Category:Scripting Commands ArmA|FIND]]  | |||
[  | |||
Revision as of 00:09, 2 August 2006
Description
- Description:
 - Returns the position of the first array element that matches x, returns -1 if not found.
 - Groups:
 - Uncategorised
 
Syntax
Examples
- Example 1:
 [0, 1, 2] find 1 .... result is 1
Additional Information
- See also:
 - See also needed
 
Notes
- 
Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note