select: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 21: Line 21:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <code>[1,2,3,4] select true</code> - result is 2 |= Example 1
|x1= <code>[1,2,3,4] select 1</code> - result is 2 |= Example 1


|x2= <code>[1,2,3,4] select 3</code> - result is 4 |= Example 2
|x2= <code>[1,2,3,4] select 3</code> - result is 4 |= Example 2

Revision as of 02:20, 7 October 2006

Hover & click on the images for description

Description

Description:
Selects index element of the array. Index 0 denotes the first element, 1 the second, etc.
Groups:
Uncategorised

Syntax

Syntax:
array select index
Parameters:
array: Array
index: Number
Return Value:
Any Value

Examples

Example 1:
[1,2,3,4] select 1 - 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

Notes

Bottom Section