Login
OFPEC RSS
Username:
Password:
Not a member yet?
Register for free!
Home
Intel Depot
Editors Depot
Missions Depot
Addons Depot
Forum
Home
›
COMREF
›
T
›
then
if
then
else
Operand types
if
:
If Type
else
:
Array
Type of returned value
Anything
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}]
Types
Arrays
Scripting Topics
BIS Functions
Arma2 CfgVehicles
Arma2 Weapons
ArmA CfgVehicles
ArmA Weapons
OFP CfgVehicles
OFP Weapons
- Select Game -
List All
Arma2:OA Only
Arma2 Only
ArmA Only
Elite
Original OFP
- Select Type -
objects
units
groups
vehicles
weapons
markers
environment
game
dialogs
cutscenes
sound
mathematics
variables
script commands
multiplayer
3D editor
Top of page