BoundBy
Category: Arithmetics
Since engine version: 5.1 OC
Description
Returns value if it is within the given boundaries (value >= lower_bound and value <= upper_bound). Otherwise returns the applicable limit.
Syntax
int BoundBy(int value, int lower_bound, int upper_bound);
Parameters
- value:
Value to be compared.
- lower_bound:
Lower limit.
- upper_bound:
Upper limit.
jwk, 2002-04