else: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:
back to [[Scripting_Reference#E|COMREF]]
<h2 style="color:#000066">''ifcode '''''else ''elsecode'''''</h2>
<h2 style="color:#000066">''ifcode '''''else ''elsecode'''''</h2>


'''Operand types:'''
'''Operand types:'''


ifCode: [[String]]
'''ifCode:''' [[String]]
 
'''
elseCode: [[String]]
elseCode:''' [[String]]


'''Type of returned value:'''
'''Type of returned value:'''
Line 13: Line 16:
'''Description:'''
'''Description:'''


Construct array that can be processed by then.
Construct array that can be processed by '''then'''.
 


'''Example:'''
'''Example:'''


if (a>b) then {c=0} '''else''' {c=1}
[[if]] (a>b) [[then]] {c=0} '''else''' {c=1}

Revision as of 03:13, 16 April 2006

back to COMREF

ifcode else elsecode


Operand types:

ifCode: String elseCode: String

Type of returned value:

Array

Description:

Construct array that can be processed by then.


Example:

if (a>b) then {c=0} else {c=1}