if: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands]]
[[Category:Scripting Commands OFP 1.97]]
[[Category:Scripting Commands ArmA]]
back to [[Scripting_Reference#I|COMREF]]
back to [[Scripting_Reference#I|COMREF]]



Revision as of 17:43, 19 April 2006


back to COMREF

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