switch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
Line 2: Line 2:
[[Category:Scripting Commands ArmA|SWITCH]]
[[Category:Scripting Commands ArmA|SWITCH]]
[[Category:Armed Assault: Control Flows|SWITCH]]
[[Category:Armed Assault: Control Flows|SWITCH]]
[[Category:Scripting Commands|SWITCH]]
{{ArmA-disclaimer}}
{{ArmA-disclaimer}}
===Introduction===
===Introduction===

Revision as of 19:31, 30 July 2006

Template:ArmA-disclaimer

Introduction

Scripting commands available in Armed Assault.


switch exp


Operand types:

exp: Anything

Type of returned value:

Switch Type

Description:

Begins switch form


Example:

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