Hello, Harley.
You mean like in a modifier that holds a variable within a range? Not that I know of.
However, you can always create two variables, x-MIN and x-MAX, preassign the "legal" values in the range, then perform an IF-THEN conditional to hold x in that range.
Code:
x var word
x-MIN var word
x-MAX var word
x-MIN = 500
x-MAX = 1000
MAIN
... some code ...
;After we collect some data or input a value, we do the following range check:
IF x > x-MAX then ; is x > 1000?
x = x-MAX ; make x = 1000
ELSE
IF x < x-MIN then ; is x < 500?
x = x-MIN ; make x = 500
ENDIF
GOTO MAIN ; repeat all this
Basically we have asked if x is greater than 1000 or become less than 500. If either is true (out of range) we then set x to its range limits, which in this example is 500 for the low side or 1000 for the high side. The IF-THEN conditional would likely be a subroutine so it would be available to multiple routines changing the value in x, in which case we have a "RETURN" after the "ENDIF".
Make sense?
Have a nice project.