select: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (+ Examples) |
||
Line 17: | Line 17: | ||
| [[Any Value]] |= Return value | | [[Any Value]] |= Return value | ||
____________________________________________________________________________________________ | |||
|x1= <code>[1,2,3,4] select true</code> - result is 2 |= Example 1 | |||
|x2= <code>[1,2,3,4] select 3</code> - result is 4 |= Example 2 | |||
|x3= <code>[[position]] [[player]] select 2</code> - result is Z coordinate of player position (see [[Position3D]] for more details) |= Example 3 | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 16:34, 6 October 2006
Description
- Description:
- If index is false, this selects the first element of the array, if it is true, it selects the second index.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
[1,2,3,4] select true
- result is 2- Example 2:
[1,2,3,4] select 3
- result is 4- Example 3:
position player select 2
- result is Z coordinate of player position (see Position3D for more details)
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