step: Difference between revisions

From Bohemia Interactive Community
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. |= 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=


|p1= for: [[For Type]] |= Parameter 1
|p1= for: [[For Type]] |PARAMETER1=


|p2= stepSize: [[Number]] |= Parameter 2
|p2= stepSize: [[Number]] |PARAMETER2=


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


| [[Control Structures]]  |= See also
| [[Control Structures]]  |SEEALSO=


}}
}}

Revision as of 15:49, 7 April 2019

-wrong parameter ("Arma") defined!-1.00
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 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