switch do: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
 
m (added see also to control structures)
Line 25: Line 25:




|  |= See also
| [[Control Structures]] |= See also


}}
}}

Revision as of 16:48, 15 January 2007

-wrong parameter ("Arma") defined!-1.00
Hover & click on the images for description

Description

Description:
Switch form.
Groups:
Uncategorised

Syntax

Syntax:
switch do block
Parameters:
switch: Switch Type
block: Code
Return Value:
Anything

Examples

Example 1:
switch (_a) do {case 1: {hint "1"}; case 2: {hint "2"}; default {hint "default"};}
Example 2:
switch (_a) do {case true: {hint "true"}; case false: {hint "false"}; default {hint "default"};}
Example 3:
switch (_a) do {case "string1": {hint "string1"}; case "string2": {hint "string2"}; default {hint "default"};}

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

Notes