a hash b: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) (Page creation) |
No edit summary |
||
Line 35: | Line 35: | ||
[[Category:Scripting Commands|#]] | [[Category:Scripting Commands|#]] | ||
[[Category:Scripting Commands Arma 3|#]] | [[Category:Scripting Commands Arma 3|#]] | ||
<!-- CONTINUE Notes --> | |||
<dl class="command_description"> | |||
<dd class="notedate">Posted on April 25, 2018 - 00:51 (UTC)</dd> | |||
<dt class="note">[[User:KC Grimes|KC Grimes]]</dt> | |||
<dd class="note"> | |||
Although not alternative syntax, the below notations work as expected: | |||
<code>["A","B","C"] # 1; //B | |||
["A","B","C"] #1; //B | |||
["A","B","C"]#1; //B | |||
["A","B",["C","D"]]#2#0; //C</code> | |||
</dd> | |||
</dl> | |||
<!-- DISCONTINUE Notes --> |
Revision as of 01:51, 25 April 2018
Description
- Description:
- Selects an element from an array, same as select first syntax.
- 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