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)
{
  dosomething();
}

-j

thank you for the quick reply :)

YES!

succesfull code!

thanks a bunch