- Joined
- Sep 28, 2004
- Messages
- 365
Hi all, i am pretty new to JASS and want to know its syntax. However after reading tutorials. I notice that JASS don't support Switch Statement. Is this true? Or if i am wrong. What is the syntax of Switch Statement in JASS?
Example:
Because i find nesting too much If statement is inefficient. Thanks for the help!
Example:
JASS:
switch(value)
{
case 0 : //code here
case 1 : //code here
case 2 : //etc..
default : //....
}
Because i find nesting too much If statement is inefficient. Thanks for the help!