while: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
Line 8: | Line 8: | ||
| First part of while construct. | | 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: | Examples: while {x<10} [[do]] {x<nowiki>=</nowiki>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 | <nowiki>{while {</nowiki>[[not]] [[canStand]] _x} [[do]] {_x [[setDammage]] ([[getDammage]] _x) - 0.01<nowiki>}}</nowiki>[[forEach]] units [[group]] unitname | ||
|= Description | |||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Revision as of 01:05, 2 August 2006
Description
- Description:
- 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
- Groups:
- Uncategorised
Syntax
- Syntax:
- while condition
- Parameters:
- condition: String
- Return Value:
- While Type
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