a hash b: Difference between revisions
Jump to navigation
Jump to search
Killzone Kid (talk | contribs) No edit summary |
m (Bot: Replacing category Scripting Commands Arma 3 with Arma 3: Scripting Commands) |
||
Line 32: | Line 32: | ||
<h3 style="display:none">Bottom Section</h3> | <h3 style="display:none">Bottom Section</h3> | ||
<!-- CONTINUE Notes --> | <!-- CONTINUE Notes --> | ||
<dl class="command_description"> | <dl class="command_description"> | ||
Line 48: | Line 45: | ||
</dl> | </dl> | ||
<!-- DISCONTINUE Notes --> | <!-- DISCONTINUE Notes --> | ||
[[Category:Scripting Commands|#]] | |||
[[Category:Arma 3: Scripting Commands]] |
Revision as of 16:12, 3 December 2018
Description
- Description:
- Selects an element from an array, same as select command for arrays, but has higher precedence
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
[1,2,3,4] # 2; // result is 3
- Example 2:
position player # 2; // result is Z coordinate of player's position
Additional Information
- See also:
- selectselectRandomselectRandomWeightedsetresizereverseinfindtoArraytoStringforEachcountdeleteAtdeleteRangeappendsortparamparamssplitStringjoinStringpushBackpushBackUniqueapply
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
- Posted on April 25, 2018 - 00:51 (UTC)
- KC Grimes
-
Although not alternative syntax, the below notations work as expected:
["A","B","C"] # 1; //B ["A","B","C"] #1; //B ["A","B","C"]#1; //B ["A","B",["C","D"]]#2#0; //C