for forspec: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Reset ArmA ver)
 
m (added see also)
Line 15: Line 15:
____________________________________________________________________________________________
____________________________________________________________________________________________
|x1 = <code> '''for''' [{_x<nowiki>=</nowiki>1},{_x<<nowiki>=</nowiki>10},{_x<nowiki>=</nowiki>_x+1}] [[do]] {[[debugLog]] _x;}  </code>
|x1 = <code> '''for''' [{_x<nowiki>=</nowiki>1},{_x<<nowiki>=</nowiki>10},{_x<nowiki>=</nowiki>_x+1}] [[do]] {[[debugLog]] _x;}  </code>
| |= See also
| [[Control Structures]] |= See also


}}
}}

Revision as of 15:27, 15 January 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
creates cycle, using C like style. See example.
Groups:
Uncategorised

Syntax

Syntax:
for forspec
Parameters:
forspec: Array
Return Value:
For Type

Examples

Example 1:
for [{_x=1},{_x<=10},{_x=_x+1}] do {debugLog _x;}

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