FANDOM


  

点击图片可看到更多讯息

开始使用于

游戏:
Operation Flashpoint: Resistance
版本:
1.85

描述

描述:
Repeats Code while condition is true. A part of while do construct.

基本句法

句法:
while condition
参数:
condition: Code
返回值:
While Type

范例

范例1:
while {a < b} do {a = a + 1};

范例2:
A practical example: 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;

额外资讯

多人游戏:
-
也可以看看:

Control StructureswaitUntilfor dofor forspec

注意事项

此处撰写句法皆为可行用法. 可到官网[1]专页回报错误. 你可以使用讨论页面或是论坛来进行讨论.
新增注意事项 | 如何新增?

Notes

Posted on May 14, 2008
Kronzky
The boolean code that's used to evaluate the while condition can be preceded by code that executes a regular command.
while {_a =_a + 1; _a < 10} do {...}

Bottom Section

Posted on August 30, 2014 - 08:12 (UTC)
Killzone Kid
In non-scheduled environment, while do loop is limited to 10000 iterations, after which it exits even if condition is still true. In scheduled environment no such limit exists.

您使用了广告屏蔽软件!


Wikia通过广告运营为用户提供免费的服务。我们对用户通过嵌入广告屏蔽软件访问网站进行了使用调整。

如果您使用了广告屏蔽软件,将无法使用我们的服务。请您移除广告屏蔽软件,以确保页面正常加载。

查看其他FANDOM

随机维基