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

Syntax

$dummy = CFO_MaxLimit(value, max);

Examples

$dummy = CFO_MaxLimit(10, 16);
// Returns 10

$dummy = CFO_MaxLimit(18, 16);
// Returns 16

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