Returns min or max if value is out of the limits and return value if not.

Syntax

$dummy = CFO_MinMaxLimit(value, min, max);

Examples

$dummy = CFO_MinMaxLimit(12, 10, 50);
// Returns 12

$dummy = CFO_MinMaxLimit(8, 20, 50);
// Returns 20

$dummy = CFO_MinMaxLimit(52, 20, 50);
// Returns 50

$dummy = CFO_MinMaxLimit({42}, 10, 50);
// Typical use when you want to control limits of 42 option