default: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}") |
Lou Montana (talk | contribs) m (Text replacement - "_{10,} " to "") |
||
Line 1: | Line 1: | ||
{{Command|Comments= | {{Command|Comments= | ||
| arma1 |Game name= | | arma1 |Game name= | ||
Line 9: | Line 8: | ||
|1.00|Game version= | |1.00|Game version= | ||
| See [[switch do]]. |DESCRIPTION= | | See [[switch do]]. |DESCRIPTION= | ||
| '''default''' a |SYNTAX= | | '''default''' a |SYNTAX= | ||
Line 19: | Line 16: | ||
| [[Nothing]] |RETURNVALUE= | | [[Nothing]] |RETURNVALUE= | ||
|x1 = <code>[[switch]] (_condition) [[do]] { | |x1 = <code>[[switch]] (_condition) [[do]] { | ||
Line 26: | Line 22: | ||
[[default]] { [[hint]] "default" }; | [[default]] { [[hint]] "default" }; | ||
};</code>|EXAMPLE1= | };</code>|EXAMPLE1= | ||
| [[Control Structures]], [[switch do]], [[case]] |SEEALSO= | | [[Control Structures]], [[switch do]], [[case]] |SEEALSO= |
Revision as of 00:41, 17 January 2021
Description
- Description:
- See switch do.
- Groups:
- Program Flow
Syntax
Examples
- Example 1:
switch (_condition) do { case 1: { hint "1" }; case 2: { hint "2" }; default { hint "default" }; };
Additional Information
- See also:
- Control Structuresswitch docase
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