Multiple variables for an if statement

have a between value like x<1000 but >800

if(x > 800 && x < 1000)