Variable > 9 <2

How can I make in script editor:
Thanks
- Code: Select all
If (variable between for example 9 and 2)
{
action
}
Thanks
If (variable between for example 9 and 2)
{
action
}
if(variable >= 2 && variable <= 9)
{
//Your action here
}