if (x <= value <= y)

Write your question here.
Correctly recode the statement:
is x<=y correct?
Nope, x <= y isn't correct, sorry.

You're missing a logical operation and another comparison somewhere.

-Albatross
These are two conditions:
1. x is less or equal to value
2. y is greater or equal to value
So you need to name both of them and use logical operator AND (&&).
if ((x<=value)&&(value<=y))
{
do something
}
Topic archived. No new replies allowed.