else: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (fixed format. {} hiding examples.)
Line 4: Line 4:
[[Category:Armed Assault: Control Flows|ELSE]]
[[Category:Armed Assault: Control Flows|ELSE]]


{{Command|= Comments
____________________________________________________________________________________________


<h2 style="color:#000066">'''''ifcode'' else ''elsecode'''''</h2>
| |= Game name


|1.85 |= Game version
____________________________________________________________________________________________


'''Operand types:'''
| Construct an array that can be processed by [[then]]. |= Description
____________________________________________________________________________________________


'''ifCode:''' [[Code]]
| '''''ifcode'' else ''elsecode''''' |= Syntax


'''elseCode:''' [[Code]]
|p1= ifCode: [[Code]] |=Parameter 1


'''Type of returned value:'''
|P2= elseCode: [[Code]]|=Parameter 2


[[Array]]
| [[Array]] |= Return value
____________________________________________________________________________________________
|x1=  [[if]] (a>b) [[then]] <nowiki>{c=0}</nowiki> '''else''' <nowiki>{c=1}</nowiki> |=Example 1
|  |= See also


'''Compatibility:'''
}}


Added in version '''1.85'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Description:'''
<!-- Note Section END -->
</dl>


Construct an array that can be processed by [[then]].
<h3 style="display:none">Bottom Section</h3>
 
 
'''Example:'''
 
[[if]] (a>b) [[then]] {c=0} '''else''' {c=1}

Revision as of 14:52, 2 August 2006


Hover & click on the images for description

Description

Description:
Construct an array that can be processed by then.
Groups:
Uncategorised

Syntax

Syntax:
ifcode else elsecode
Parameters:
ifCode: Code
Return Value:
Array

Examples

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

Additional Information

See also:
See also needed

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

Notes

Bottom Section