switch: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
(add. ArmA2 classification) |
||
Line 38: | Line 38: | ||
[[Category:Command Group: Program Flow|SWITCH]] | [[Category:Command Group: Program Flow|SWITCH]] | ||
[[Category:Command_Group:_Variables|{{uc:{{PAGENAME}}}}]] | [[Category:Command_Group:_Variables|{{uc:{{PAGENAME}}}}]] | ||
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]] |
Revision as of 17:45, 3 June 2009
Description
- Description:
- See switch do
- 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};}
- Example 2:
_color=switch (side player) do {
case west: {"ColorGreen"};
case east: {"ColorRed"};
};
Additional Information
- See also:
- Control Structures
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