step: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Take[ _]On[ _]Helicopters(\|.*)?\]\]" to "{{GameCategory|tkoh|Scripting Commands}}")
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

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:
Program Flow

Syntax

Syntax:
for step stepSize
Parameters:
for: For Type
stepSize: Number
Return Value:
For Type

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

Notes

Bottom Section