if: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Category added)
mNo edit summary
Line 2: Line 2:
[[Category:Scripting Commands OFP 1.96|IF]]
[[Category:Scripting Commands OFP 1.96|IF]]
[[Category:Scripting Commands ArmA|IF]]
[[Category:Scripting Commands ArmA|IF]]
[[Category:Control Flows ArmA|IF]]
[[Category:Armed Assault: Control Flows|IF]]


<h2 style="color:#000066">'''if ''condition'''''</h2>
<h2 style="color:#000066">'''if ''condition'''''</h2>

Revision as of 08:09, 22 July 2006


if condition


Operand types:

condition: Boolean

Type of returned value:

If Type

Compatibility:

Added in version 1.85

Description:

First part of if command.


Example:

if (a>b) then {a=b}


Comments:

Standard syntax = if a then b

Alternative syntax = ? a : b

See also: else