Hello All,
I want to check if a number is between other numbers. For example I would want the following:
Lets say $x1=8
Then I would want to check if $x1 is between 11 - 46, if it is not then do the else. How would I write this? Can I use an and in the if statement? for example
if($x1 > 11 and $x1 < 46) { put the other code here}
or is there another way?
In the above example it would fail, if $x1=16 then it would pass.
Thanks,
Zych
I want to check if a number is between other numbers. For example I would want the following:
Lets say $x1=8
Then I would want to check if $x1 is between 11 - 46, if it is not then do the else. How would I write this? Can I use an and in the if statement? for example
if($x1 > 11 and $x1 < 46) { put the other code here}
or is there another way?
In the above example it would fail, if $x1=16 then it would pass.
Thanks,
Zych