else: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 15: Line 15:
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''''ifcode'' else ''elsecode''''' |= Syntax
| ifCode '''else''' elseCode |= Syntax


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



Revision as of 11:40, 4 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