Wait, TS has a case or command? Huh, didn't know that
Yeah, I didn't know this either until I saw it in a thread about a month ago, I thought it was very interesting. In fact, Greek2Me uses the "or" operator in his new Slayer code.
switch$ = String cases (you can use numbers too but they have to be in a string), ex:
Code: server.cs (8 lines)
switch$(%cake) { case "cake" or "0": echo("cake is good");
default: echo("oh noes!"); }
|
switch = number cases, ex:
Code: server.cs (8 lines)
switch(%cake) { case 0 or 1: echo("we have a zero");
default: echo("no no"); }
|