Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Testing a variable within a range
#1
Hello!

I was wondering if there was a better way of testing whether a variable was within a range.

So instead of:

Code:
IF a > 0 and a < 30 then...

There was a neater and/or more memory efficient method? These sorts of tricks that can help us eke out every last drop out of zxbasic. Smile

Cheers,


Steve
Reply


Messages In This Thread
Testing a variable within a range - by worcestersource - 2022-01-27, 09:14 PM
RE: Testing a variable within a range - by boriel - 2022-01-28, 12:19 PM
RE: Testing a variable within a range - by boriel - 2022-03-13, 12:38 PM
RE: Testing a variable within a range - by boriel - 2022-03-14, 09:50 AM
RE: Testing a variable within a range - by boriel - 2022-03-14, 10:49 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)