# IF and If Help ranges

Hi, Simple question:

How I create if ranges?

Eg:

``````if (something >1 && <10){
//do something here
}
``````

Its wrong and I have tried many combinations to get it right.

``````if ( (something > 1) && (something < 10) ){
//do something here
}
``````

ah thank you never thought of double brackets

It is more about having a (set of) full statement(s).

E.g.
IF something is more than one AND IF something is less than ten AND IF something is even number THEN do_something

You cannot have something like
IF something is more than zero, but less than 10 THEN

it should be
IF something is more than zero AND something is less than 10 THEN