点击图片可看到更多讯息
开始使用于
- 游戏:
- Operation Flashpoint: Resistance
- 版本:
- 1.85
描述
- 描述:
- Executes else code when if condition returns false
基本句法
- 句法:
- ifCode else elseCode
- 参数:
- ifCode: Code
- elseCode: Code
- 返回值:
- Array
范例
- 范例1:
if (a > b) then { c = 0 } else { c = 1 };
- 范例2:
if (a < b) then {
hint "B is greater than A";
} else {
hint "A is greater than B";
};
额外资讯
- 多人游戏:
- -
- 也可以看看:
- Control Structuresifthen
注意事项
Notes
Bottom Section