Warning: file_put_contents(/ff_c13f2e689b87287c0d53a522cd6d2a7465e7be3d9b99e316.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
then - OFPEC Scripting Command Reference | OFPEC The Editing Center

if then else

Operand types

if: If Type
else: Array

Type of returned value

Description

First or second element of array is executed depending on result of if condition.
Result of the expression executed is returned as a result (result may be Nothing).

Used In

OFP/ArmA

Example

if (a>b) then {c=1} else {c=2}

if (a>b) then [{c=1},{c=2}]

Advertisement