else

From Bohemia Interactive Community
Jump to: navigation, search
Introduced with Operation Flashpoint: Resistance version 1.85
  

Click on the images for descriptions

Introduced in

Game:
Operation Flashpoint: Resistance
Version:
1.85

Description

Description:
Executes else code when if condition returns false

Syntax

Syntax:
ifCode else elseCode
Parameters:
ifCode: Code
elseCode: Code
Return Value:
Array

Examples

Example 1:
if (a > b) then { c = 0 } else { c = 1 };
Example 2:
if (a < b) then { hint "B is greater than A"; } else { hint "A is greater than B"; };

Additional Information

Multiplayer:
-
See also:
Control Structuresifthen

Notes

Only post proven facts here. Report bugs on the feedback tracker. Use the talk page or the forums for discussions.
Add New Note | How To

Notes

Bottom Section