step: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|STEP]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|STEP]]
____________________________________________________________________________________________


| ofp |= Game name


<h2 style="color:#000066">'''''for /.../'' step ''step'''''</h2>
|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
____________________________________________________________________________________________


'''Operand types:'''
| for /.../ '''step''' step |= Syntax


'''for /.../:''' [[For Type]]
|p1= for /.../: [[For Type]] |= Parameter 1


'''step:''' [[Number]]
|p2= step: [[Number]] |= Parameter 2


'''Type of returned value:'''
| [[For Type]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>for "_x" from 20 to 10 step -2 do {..code..}</pre> |= Example 1
____________________________________________________________________________________________


[[For Type]]
|  |= See also


'''Description:'''
}}


Optionally can set step.
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


If you want to count down, step must be specified, and set negative.
<!-- Note Section END -->
</dl>


Default value is 1.
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|STEP]]
 
[[Category:Scripting Commands ArmA|STEP]]
'''Example:'''
 
for "_x" from 20 to 10 '''step''' -2 do {..code..}

Revision as of 23:53, 1 August 2006

Hover & click on the images for description

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

Syntax:
for /.../ step step
Parameters:
for /.../: For Type
step: Number
Return Value:
For Type

Examples

Example 1:
for "_x" from 20 to 10 step -2 do {..code..}

Additional Information

See also:
See also needed

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

Bottom Section