BoundBy
Category: Arithmetics
Since engine version: 4.6.5.0 CP
Description
Returns iVal if it is within the given boundaries (iVal >= iRange1 and iVal <= iRange2). Otherwise returns the applicable limit.
Syntax
int BoundBy
      (int iVal, int iRange1, int iRange2);
    
Parameters
- iVal: 
- Value to be compared 
- iRange1: 
- Lower limit 
- iRange2: 
- Upper limit 
jwk, April 2002