- Joined
- Jul 14, 2004
- Messages
- 463
Simple question:
Is there any similar function in JASS which checks different values of the same variable, such like the "switch/case"-function in C++:
---CODE---
switch (variable)
case possible value: code to execute;
case another possible value: code;
...
default: code;
break;
---/CODE---
I really like this statement although you can of course also do the same using different ifs...
So if there is any please describe how to use it!
Is there any similar function in JASS which checks different values of the same variable, such like the "switch/case"-function in C++:
---CODE---
switch (variable)
case possible value: code to execute;
case another possible value: code;
...
default: code;
break;
---/CODE---
I really like this statement although you can of course also do the same using different ifs...
So if there is any please describe how to use it!