select: Difference between revisions
Jump to navigation
Jump to search
m (+ Examples) |
mNo edit summary |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| | | Selects index element of the array. | ||
Index 0 denotes the first element, 1 the second, etc. |= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 14: | Line 16: | ||
|p1= array: [[Array]] |= Parameter 1 | |p1= array: [[Array]] |= Parameter 1 | ||
|p2= index: [[ | |p2= index: [[Number]] |= Parameter 2 | ||
| [[Any Value]] |= Return value | | [[Any Value]] |= Return value |
Revision as of 02:19, 7 October 2006
Description
- Description:
- Selects index element of the array. Index 0 denotes the first element, 1 the second, etc.
- 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