Operators in switch statements?
#1

Is it possible to use operators (<, >, >= etc.) in switch statements? For example, you might want to do something like

pawn Код:
case < 1:
case 1:
case 2:
but obviously that doesn't work. Is there a way, or do I just have to use if statements?
Reply


Messages In This Thread
Operators in switch statements? - by Derexi - 26.02.2015, 15:02
Re: Operators in switch statements? - by awoo - 26.02.2015, 15:11
Re: Operators in switch statements? - by Schneider - 26.02.2015, 15:18

Forum Jump:


Users browsing this thread: 1 Guest(s)