How can I make the switch/case construct react to intervals rather than simple types?
I need four reactions:
case <0 :
case 0 :
case 1 :
case >0 :
(I know the syntaxt is wrong here, but you get the idea)
I want to keep the switch argument intact. Can't the cases express intervals?
I know I can convert my numbers to simple types to do the switch, but just out of curiosity...
Martin