step: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 9: | Line 8: | ||
|1.00|Game version= | |1.00|Game version= | ||
| Optionally can set step. If you want to count down, step must be specified, and set negative. Default value is 1. |DESCRIPTION= | | Optionally can set step. If you want to count down, step must be specified, and set negative. Default value is 1. |DESCRIPTION= | ||
| for '''step''' stepSize |SYNTAX= | | for '''step''' stepSize |SYNTAX= | ||
Line 21: | Line 18: | ||
| [[For Type]] |RETURNVALUE= | | [[For Type]] |RETURNVALUE= | ||
|x1= <pre>for "_x" from 20 to 10 step -2 do {..code..}</pre> |EXAMPLE1= | |x1= <pre>for "_x" from 20 to 10 step -2 do {..code..}</pre> |EXAMPLE1= | ||
| [[Control Structures]] |SEEALSO= | | [[Control Structures]] |SEEALSO= |
Revision as of 03:57, 17 January 2021
Description
- Description:
- Optionally can set step. If you want to count down, step must be specified, and set negative. Default value is 1.
- Groups:
- Program Flow
Syntax
Examples
- Example 1:
for "_x" from 20 to 10 step -2 do {..code..}
Additional Information
- See also:
- Control 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