I just Don’t understand how to use a boolean operator inside a switch statement
switch (expression) {
case > 20:
statements
break;
case < -20:
statements
break;
}
Edit:
I don’t want an If () statement.
What.. you want more than 1 boolean in a case? You could do this
This, IMO is pretty bad code, but it is what you asked for…
Just use the if statement, you’ll be better off in the long run.