Im trying to set up a switch statement that uses operators for their case. For example, I have different units spawned across my map depending on what the current value of a variable is. I can't find anything that works for the case. I have tried using expressions but I keep getting an "Expected Boolean" error.
The Team - TnTProductions
TnTProductions latest Project - Docking Bay 13
TnTProductions Epic RPG in the making - Psionics: Chaos Rising
Check out our website on wixx! http://bulletbutter.wix.com/tntproductions
Did you type in {<4} in custom script or through the expression editor? Anyways, SC2 GUI converts switches into multiple if/else if's, it's not true switch cases.
And in your case, it's basically saying "if (Current Level == <4)" which... can't be done.
If you wish to have true switch cases, then you need to type it out manually so that you can use (Current Level < 4) in the case
Im trying to set up a switch statement that uses operators for their case. For example, I have different units spawned across my map depending on what the current value of a variable is. I can't find anything that works for the case. I have tried using expressions but I keep getting an "Expected Boolean" error.
@bulletbutter: Go
I'm assuming you mean the ({<4}) part, right?
Did you type in {<4} in custom script or through the expression editor? Anyways, SC2 GUI converts switches into multiple if/else if's, it's not true switch cases.
And in your case, it's basically saying "if (Current Level == <4)" which... can't be done.
If you wish to have true switch cases, then you need to type it out manually so that you can use (Current Level < 4) in the case