if then codeToBreak

Operand types

if: If Type
codeToBreak: Code

Type of returned value

Description

Code is executed when if condition is met.
If code is executed, last value calculated in the code is returned.
If code is not executed, Nothing is returned.

Used In

OFP/ArmA

Example

if (a>b) then {c=1}
Search OFPEC COMREF