inbetween statement?

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

if (x >= 500 && x <= 550)


thank you for the quick reply :)


succesfull code!

thanks a bunch