for var: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Killzone Kid (talk | contribs) (can contain lower case, the notes about it moved to talk) |
||
Line 14: | Line 14: | ||
| '''for''' variable |= Syntax | | '''for''' variable |= Syntax | ||
|p1= variable: [[String]] | |p1= variable: [[String]]|= Parameter 1 | ||
| [[For Type]] |= Return value | | [[For Type]] |= Return value | ||
Line 30: | Line 30: | ||
<dl class="command_description"> | <dl class="command_description"> | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on 29 April 2010 (CEST) | <dd class="notedate">Posted on 29 April 2010 (CEST) |
Revision as of 20:21, 4 June 2015
Description
- Description:
- Starts for sequence, use in complete form (see example). The default step increment is 1. An optional step increment can be specified using the extended syntax.
- Groups:
- Uncategorised
Syntax
Examples
- Example 1:
for "_i" from 1 to 10 do {debugLog _i;};
- Example 2:
for "_i" from 9 to 1 step -2 do {debugLog _i;};
Additional Information
- See also:
- for [ ]for doControl Structures
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 29 April 2010 (CEST)
- alef
for "_i" from 0 to 0 do {}; //will do once, with _i = 0 for "_i" from 0 to -1 do {}; //will not do