Go Down

Topic: inbetween statement? (Read 552 times) previous topic - next topic

big93

hi :)

i want to use a joystick to control 4 leds ( or 5 ) but i want one of my statements to be an "in between" statement, like for example:

"if that number is in between 500 and 550, then do this!"  is there such a statement?
thnks
-big93

kg4wsv

Code: [Select]
if (x >= 500 && x <= 550)
{
 dosomething();
}


-j


big93

#2
Dec 16, 2007, 09:44 pm Last Edit: Dec 16, 2007, 09:44 pm by big93 Reason: 1
thank you for the quick reply :)

big93

YES!

succesfull code!

thanks a bunch

Go Up