How do I have an else in conjunction with an if statement with two conditions? I can't find a way to emulate an AND statement in a switch statement:

if (angle &gt;= 10 and angle &lt;= 30)
   ;// do smth
else
   ; // this is what I want


Until now, I just nested two if statements, but now I want to introduce an else case, but I don't want to duplicate the statements in the else condition two times (one in the first if, the second one in the nested one).

Is there a better way?
You can put all of the logic outside of the switch block and use the "Logic" input of the switch block. You can do exactly what you have described in pseudo code since there are "less than"/"greater than" blocks and an "and" block.