to: 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=
____________________________________________________________________________________________


| Continue sequence of [[for]] construct. It sets the end value of the index variable |Description=
| Continue sequence of [[for]] construct. It sets the end value of the index variable |Description=
____________________________________________________________________________________________


| forType [[to]] b |Syntax=
| forType [[to]] b |Syntax=
Line 21: Line 18:


| [[For Type]] |Return value=
| [[For Type]] |Return value=
____________________________________________________________________________________________
   
   
|x1= <code>[[for]] "_x" [[from]] 10 [[to]] 20 [[do]] {/* Do something*/}</code> |Example 1=
|x1= <code>[[for]] "_x" [[from]] 10 [[to]] 20 [[do]] {/* Do something*/}</code> |Example 1=
____________________________________________________________________________________________


| [[Control Structures]], [[for]], [[from]], [[step]] |See also=
| [[Control Structures]], [[for]], [[from]], [[step]] |See also=

Revision as of 04:44, 17 January 2021

Hover & click on the images for description

Description

Description:
Continue sequence of for construct. It sets the end value of the index variable
Groups:
Program Flow

Syntax

Syntax:
forType to b
Parameters:
forType: For Type
b: Number
Return Value:
For Type

Examples

Example 1:
for "_x" from 10 to 20 do {/* Do something*/}

Additional Information

See also:
Control Structuresforfromstep

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