checking for a range of numbers

Blitz3D Forums/Blitz3D Programming/checking for a range of numbers

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.

whats the best way to do this:

check to see if a number is
in the range 0>20
in the range 21>40

its quite easy to miss out numbers, I just wondered what the easiest to read method was.