check for "within range"
jcferguson
Posts: 86
Hi All,
is there an easy way to check if a variable is within a range of another variable? so for example I want to check to see if x is within 10 of y. Would I use:
if abs (x-y) > 10 then
do something
else
don't do something.
?
Thanks
Carlos Ferguson
is there an easy way to check if a variable is within a range of another variable? so for example I want to check to see if x is within 10 of y. Would I use:
if abs (x-y) > 10 then
do something
else
don't do something.
?
Thanks
Carlos Ferguson
Comments
Carlos