while: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
mNo edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofpr |= Game name | |||
|1.85|= Game version | |||
____________________________________________________________________________________________ | |||
| First part of while construct. | |||
Examples: while {x<10} [[do]] {x=x+1} A more practical example: To repair all the members of a group to such a level that they are all able to stand up: | |||
{while {[[not]] [[canStand]] _x} [[do]] {_x [[setDammage]] ([[getDammage]] _x) - 0.01}} [[forEach]] units [[group]] unitname |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''while''' condition |= Syntax | ||
|p1= condition: [[String]] |= Parameter 1 | |||
| [[While Type]] |= Return value | |||
____________________________________________________________________________________________ | |||
| |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|WHILE]] | |||
[[Category:Scripting Commands OFP 1.96|WHILE]] | |||
[[Category:Scripting Commands ArmA|WHILE]] | |||
[[Category:Armed Assault: Control Flows|WHILE]] | |||
Revision as of 22:06, 1 August 2006
Description
- Description:
- Description needed
- Groups:
- Uncategorised
Syntax
- Syntax:
- Syntax needed
- Return Value:
- Return value needed
Examples
- Examples:
- Example needed
Additional Information
- See also:
- See also needed
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
forEach units group unitname |= Description
____________________________________________________________________________________________
| while condition |= Syntax
|p1= condition: String |= Parameter 1
| While Type |= Return value ____________________________________________________________________________________________
| |= See also
}}