to: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "<h3 style="display:none">Bottom Section</h3> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame( +[0-9])?|Game [Vv]ersion( +[0-9])?|Game Version \(number surrounded by NO SPACES\)|Arguments in MP|MP[Aa]rg|Multiplayer Arguments( \("local" or "global"\))?|Effects|Execution|Effects...)
Line 1: Line 1:
{{Command|Comments=
{{Command


| arma1 |Game name=
| arma1


|gr1= Program Flow |GROUP1=
|gr1= Program Flow






|1.00|Game version=
|1.00


| 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


| forType [[to]] b |Syntax=
| forType [[to]] b


|p1= forType: [[For Type]] |Parameter 1=
|p1= forType: [[For Type]]


|p2= b: [[Number]] |Parameter 2=
|p2= b: [[Number]]


| [[For Type]] |Return value=
| [[For Type]]
   
   
|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>


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



Revision as of 11:27, 18 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