case: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \|(x[0-9]|p[0-9]{1,2}|descr|game[0-9]|version[0-9]|s[0-9]|exec|r[0-9]|arg|eff|branch|serverExec|gr[0-9]|mp|pr|seealso) +=" to " |$1=")
m (Text replacement - " \| *(([^=\| ]+)('''|\[\[)([^=\| ]+)) * \|p1=" to " |s1= $1 |p1=")
Line 10: Line 10:
Also note that it is not possible to store the returned [[Switch Type]] in a variable and use that variable in another [[switch]] construct. It will never lead to an execution of the corresponding code block.
Also note that it is not possible to store the returned [[Switch Type]] in a variable and use that variable in another [[switch]] construct. It will never lead to an execution of the corresponding code block.


| '''case''' b
|s1=  '''case''' b


|p1= b: [[Anything]]
|p1= b: [[Anything]]

Revision as of 23:59, 12 June 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
Program Flow

Syntax

Syntax:
case b
Parameters:
b: Anything
Return Value:
Return value needed

Examples

Example 1:
switch (_condition) do { case 1: { hint "1" }; case 2: { hint "2" }; default { hint "default" }; };

Additional Information

See also:
Control Structuresswitchdefault

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