switch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
[[Category:Scripting Commands|SWITCH]]
{{Command|= Comments
[[Category:Scripting Commands ArmA|SWITCH]]
____________________________________________________________________________________________
[[Category:Armed Assault: Control Flows|SWITCH]]
{{ArmA-disclaimer}}
===Introduction===


| ofp |= Game name


|1.00|= Game version
____________________________________________________________________________________________


| Begins switch form |= Description
____________________________________________________________________________________________


Scripting commands available in Armed Assault.
| '''switch''' exp |= Syntax


|p1= exp: [[Anything]] |= Parameter 1


<h2 style="color:#000066">'''switch ''exp'''''</h2>
| [[Switch Type]] |= Return value
____________________________________________________________________________________________
 
|x1= <pre>switch (_a) do { case 1: {block}; case 2 : {block}; default {block};}</pre> |= Example 1
____________________________________________________________________________________________


|  |= See also


'''Operand types:'''
}}


'''exp:''' [[Anything]]
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


'''Type of returned value:'''
<!-- Note Section END -->
</dl>


[[Switch Type]]
<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|SWITCH]]
'''Description:'''
[[Category:Scripting Commands ArmA|SWITCH]]
 
[[Category:Armed Assault: Control Flows|SWITCH]]
Begins switch form
 
 
'''Example:'''
 
'''switch''' (_a) do { case 1: {block}; case 2 : {block}; default {block};}

Revision as of 23:55, 1 August 2006

Hover & click on the images for description

Description

Description:
Begins switch form
Groups:
Uncategorised

Syntax

Syntax:
switch exp
Parameters:
exp: Anything
Return Value:
Switch Type

Examples

Example 1:
switch (_a) do { case 1: {block}; case 2 : {block}; default {block};}

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