if: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
No edit summary
Line 22: Line 22:




'''Comments'''
'''Comments:'''
 


Standard syntax = '''if''' a [[then]] b
Standard syntax = '''if''' a [[then]] b


Alternative syntax = '''?''' a ''':''' b
Alternative syntax = '''?''' a ''':''' b

Revision as of 20:21, 15 April 2006

back to COMREF

if condition


Operand types:

condition: Boolean

Type of returned value:

If Type

Description:

First part of if command.


Example:

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


Comments:

Standard syntax = if a then b

Alternative syntax = ? a : b