from: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " <h3 style="display:none">Notes</h3> <dl class="command_description"> <!-- Note Section BEGIN --> <!-- Note Section END --> </dl> " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
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 start value of the index variable. |Description=
| Continue sequence of [[for]] construct. It sets the start value of the index variable.


| for [[from]] b |Syntax=
| for [[from]] b


|p1= for: [[For Type]] |Parameter 1=
|p1= for: [[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]] {..code..}</code> |Example 1=
|x1= <code>[[for]] "_x" [[from]] 10 [[to]] 20 [[do]] {..code..}</code>


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


}}
}}

Revision as of 00:34, 18 January 2021

Hover & click on the images for description

Description

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

Syntax

Syntax:
for from b
Parameters:
for: For Type
b: Number
Return Value:
For Type

Examples

Example 1:
for "_x" from 10 to 20 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

Bottom Section