for var: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
m (VBS2 scripting category removal) |
||
Line 44: | Line 44: | ||
[[Category:Scripting Commands ArmA|FORB]] | [[Category:Scripting Commands ArmA|FORB]] | ||
[[Category:Command Group: Program Flow|FORB]] | [[Category:Command Group: Program Flow|FORB]] | ||
Revision as of 05:12, 19 July 2011
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
-
Chosen variable may not contain capital letters.
for "_I" from 0 to 4 do{}; //will not work
--T_D 23:46, 26 January 2007 (CET)
for "_i" from 0 to 0 do{}; //will do once, with _i=0
for "_i" from 0 to -1 do{}; //will not do
alef 16:06, 29 April 2010 (CEST)