select: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SELECT]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.96|SELECT]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SELECT]]
 
[[Category:Scripting Commands ArmA|SELECT]]
| ofp |= Game name
 
|1.00|= Game version
____________________________________________________________________________________________


| If index is false, this selects the first element of the array, if it is true, it selects the second index. |= Description
____________________________________________________________________________________________


<h2 style="color:#000066">'''''array'' select ''index'''''</h2>
| array '''select''' index |= Syntax


|p1= array: [[Array]] |= Parameter 1


'''Operand types:'''
|p2= index: [[Boolean]] |= Parameter 2


'''array:''' [[Array]]
| [[Any Value]] |= Return value
____________________________________________________________________________________________


'''index:''' [[Boolean]]
|  |= See also


'''Type of returned value:'''
}}


[[Any Value]]
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


If '''index''' is false, this selects the first element of the '''array''', if it is true, it selects the second '''index'''.
<h3 style="display:none">Bottom Section</h3>
[[Category:Scripting Commands|SELECT]]
[[Category:Scripting Commands OFP 1.96|SELECT]]
[[Category:Scripting Commands OFP 1.46|SELECT]]
[[Category:Scripting Commands ArmA|SELECT]]

Revision as of 00:02, 2 August 2006

Hover & click on the images for description

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

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

Examples

Examples:
Example needed

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