L
lallous
Hello,
"Aristotelis E. Charalampakis"
You can use if/else if/else combos or some sort of control table of your
design:
float range[3*2] = { 0.1, 0.9, 1, // if greater than 0.1 and below 0.9 then
integer i = 1
1.1, 2.1, 2}; // if 1.1 and 2.1 then 2, etc..
"Aristotelis E. Charalampakis"
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
You can use if/else if/else combos or some sort of control table of your
design:
float range[3*2] = { 0.1, 0.9, 1, // if greater than 0.1 and below 0.9 then
integer i = 1
1.1, 2.1, 2}; // if 1.1 and 2.1 then 2, etc..