step: Difference between revisions
Jump to navigation
Jump to search
m (formatted syntax) |
m (template:command argument fix) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Optionally can set step. If you want to count down, step must be specified, and set negative. Default value is 1. |= | | 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 |= | | for '''step''' stepSize |SYNTAX= | ||
|p1= for: [[For Type]] |= | |p1= for: [[For Type]] |PARAMETER1= | ||
|p2= stepSize: [[Number]] |= | |p2= stepSize: [[Number]] |PARAMETER2= | ||
| [[For Type]] |= | | [[For Type]] |RETURNVALUE= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <pre>for "_x" from 20 to 10 step -2 do {..code..}</pre> |= | |x1= <pre>for "_x" from 20 to 10 step -2 do {..code..}</pre> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[Control Structures]] |= | | [[Control Structures]] |SEEALSO= | ||
}} | }} |
Revision as of 14:49, 7 April 2019
Description
- Description:
- Optionally can set step. If you want to count down, step must be specified, and set negative. Default value is 1.
- Groups:
- Uncategorised
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