do: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "{{Command " to "{{RV|type=command ")
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
Line 30: Line 30:
} [[forEach]] [[units]] [[group]] unitname;</code>
} [[forEach]] [[units]] [[group]] unitname;</code>


| [[Control Structures]]
|seealso= [[Control Structures]]
}}
}}



Revision as of 00:42, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Program Flow

Syntax

Syntax:
Syntax needed
Parameters:
construct: One of:
code: Code
Return Value:
Return value needed

Examples

Example 1:
while { b > a } do { a = a + 1 };
Example 2:
Repair all members of a group to such a level that they are able to stand up: { while {!canStand _x && alive _x} do { _x setDamage (damage _x - 0.01); }; } forEach units group unitname;

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