Go Down

Topic: inbetween statement? (Read 647 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
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy