step: Difference between revisions
Jump to navigation
Jump to search
m (redirects to Control Structures) |
m (added see also) |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| arma |= Game name | |||
|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 | |||
____________________________________________________________________________________________ | |||
| for /.../ '''step''' step |= Syntax | |||
|p1= for /.../: [[For Type]] |= Parameter 1 | |||
|p2= step: [[Number]] |= Parameter 2 | |||
| [[For Type]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>for "_x" from 20 to 10 step -2 do {..code..}</pre> |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[Control Structures]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|STEP]] | [[Category:Scripting Commands|STEP]] | ||
[[Category:Scripting Commands ArmA|STEP]] | [[Category:Scripting Commands ArmA|STEP]] |
Revision as of 17:03, 15 January 2007
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