Test Value Range for "IF"

Hello,

I am using an “IF” statement to test the values of the robots current axis angles. I am trying to test a range for IF axis 5 is between -1 to +1 degree (all values between -1 and +1) THEN SingArea\Wrist. I know by using a FOR loop you can test values like: FOR i FROM 1 TO 10 DO… My question is, is there a way to test a range of values using an IF statement like the FOR loop?

Thanks for any help!
SM

Like this
IF myJoint.robax.rax_5<1 AND myJoint.robax.rax_5>-1 THEN

Thanks!