switch: Difference between revisions
Jump to navigation
Jump to search
m (add example) |
mNo edit summary |
||
Line 18: | Line 18: | ||
|x1= <code>switch (_a) [[do]] {[[case]] 1: {block}; [[case]] 2 : {block}; [[default]] {block};}</code> |= Example 1 | |x1= <code>switch (_a) [[do]] {[[case]] 1: {block}; [[case]] 2 : {block}; [[default]] {block};}</code> |= Example 1 | ||
|x2= <code>_color<nowiki>=</nowiki>switch (side player) do { <br> | |x2= <code>_color<nowiki>=</nowiki>switch (side player) do { <br> | ||
Revision as of 03:32, 12 April 2007
{{Command|= Comments ____________________________________________________________________________________________
| arma |= Game name
|1.00|= Game version ____________________________________________________________________________________________
| See switch do |= Description ____________________________________________________________________________________________
| switch exp |= Syntax
|p1= exp: Switch Type |= Parameter 1
| Anything |= Return value ____________________________________________________________________________________________
|x1= switch (_a) do {case 1: {block}; case 2 : {block}; default {block};}
|= Example 1
|x2= _color=switch (side player) do {