Hi all, this is a newbie question :-)
I was wondering if there was a way to use the switch statement in a manner
that each case statement includes more that a simple value. i.e.:
switch ( myFloat )
{
case >0: // ??? how do i write this ???
// execute if myfloat >0
break;
case 0:
// execute if myfloat ==0
break;
default:
// you got the idea
}
TIA
Aristotelis
I was wondering if there was a way to use the switch statement in a manner
that each case statement includes more that a simple value. i.e.:
switch ( myFloat )
{
case >0: // ??? how do i write this ???
// execute if myfloat >0
break;
case 0:
// execute if myfloat ==0
break;
default:
// you got the idea
}
TIA
Aristotelis
Comment