default: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]2(\|.*)\]\]" to "{{GameCategory|arma2|Scripting Commands}}")
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

Hover & click on the images for description

Description

Description:
See switch do.
Groups:
Program Flow

Syntax

Syntax:
default a
Parameters:
a: Code
Return Value:
Nothing

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

Notes

Bottom Section