if: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
((sorry, but I'm too lazy to click minor edit all evertime...))
Line 1: Line 1:
[[Category:Scripting Commands|IF]]
[[Category:Scripting Commands|IF]]
[[Category:Scripting Commands OFP 1.97|IF]]
[[Category:Scripting Commands OFP 1.96|IF]]
[[Category:Scripting Commands ArmA|IF]]
[[Category:Scripting Commands ArmA|IF]]



Revision as of 20:01, 1 June 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