switch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (Fixed ArmA version, wiki links)
Line 4: Line 4:
| arma |= Game name
| arma |= Game name


| ?? |= Game version
|1.00|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


Line 17: Line 17:
____________________________________________________________________________________________
____________________________________________________________________________________________
   
   
|x1= <pre>switch (_a) do { case 1: {block}; case 2 : {block}; default {block};}</pre> |= Example 1
|x1= <code>switch (_a) [[do]] {[[case]] 1: {block}; [[case]] 2 : {block}; [[default]] {block};}</code> |= Example 1
____________________________________________________________________________________________
____________________________________________________________________________________________



Revision as of 18:04, 11 October 2006

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

Description

Description:
See switch do
Groups:
Uncategorised

Syntax

Syntax:
switch exp
Parameters:
exp: Switch Type
Return Value:
Anything

Examples

Example 1:
switch (_a) do {case 1: {block}; case 2 : {block}; default {block};}

Additional Information

See also:
See also needed

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