Quote (labatymo @ Oct 16 2013 04:08pm)
you can't use comparison operators in a switch. a comparison operation returns a boolean and switches don't work with booleans
Quote (pute_Fg @ Oct 16 2013 03:59pm)
i changed the comparison operations for case ( 5 & 8 ) . Should it work?
Plus that's a bitwise operator, not a boolean operator.
The whole point of switch statements is to build a lookup table ahead of time. So it has to be constant.