Are you tired of typing out long and repetitive statements to keep your values in-bounds, like:
IF X‹0 THEN X=0
IF X>50 THEN X=50
Here are some quick functions to make the process simpler.
X=HIGH(0,X) will force X up to 0 if it's too low.
X=LOW(50,X) will force X down to 50 if it's too high.
X=BOUNDS(X,0,50) will force X to stay within the bounds of 0-50 by forcing it up to zero if it's too low or down to 50 if it's too high.
Not to rain on your parade, but there are built-in functions MAX and MIN that are the equivalent of HIGH and LOW. But on the other hand, I think your HIGH and LOW functions will work on strings while the built-in functions don't, and the BOUNDS function is useful either way!