Constrain
Syntax
Constrain(Expression1, Expression2, Expression3)
Summary
Returns the value of expression1 constrained by the upper and lower bounds specified in Expression2 and Expression3. In other words the returned value will always be within the bounds of the value range specified by Expression2 and Expression3.
Example
Constrain(99,100,200) = 100
Constrain(99,50,200) = 99
Constrain(99,50,90) = 90