- Joined
- Apr 13, 2008
- Messages
- 1,608
Hi, I was wondering if there is an In Case of syntax in JASS.
In other programming languages (delphi, for example) this serves as many ifs, for example:
In Case of YourInteger
1: yourcodeshere
2: here too please
Would have the same effect as:
If YourInteger == 1 then
yourcodeshere
else
If Youriteger == 2 then
your codes here too again please
endif
endif
Just the in case of syntax is much shorter, and much easier on the eye.
In other programming languages (delphi, for example) this serves as many ifs, for example:
In Case of YourInteger
1: yourcodeshere
2: here too please
Would have the same effect as:
If YourInteger == 1 then
yourcodeshere
else
If Youriteger == 2 then
your codes here too again please
endif
endif
Just the in case of syntax is much shorter, and much easier on the eye.