checking a range of values

Blitz3D Forums/Blitz3D Programming/checking a range of values

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I am trying to determine WHERE the wheel stops in my other forum post. I have determined a range of values based loosely on Euler sets to tell what pitch roll and yaw stands for every number on the wheel.

I need to compare the final position of the wheel to these values to output what number is showing on the wheel...

How?

I tried to get fancy with select case but no go. I tried a convoluted If then statement but it did not work.

If numbershow < -17 And numbershow > 17 And numberroll=0 Then wheelnumber = 3
If numbershow < 18 And numbershow > 53 And numberroll=0 Then wheelnumber = 2
If numbershow < 54 And numbershow > 90 And numberroll=0 Then wheelnumber = 1 
How can I check a range of values?

BTW numbershow id the entityroll$(mesh) value and numberroll is the entityyaw#(mesh) value.

-RZ