LIMIT

Limiting

OUT := LIMIT(Min, IN, Max) 

means:

OUT := MIN (MAX (IN, Min), Max)

Max is the upper and Min the lower limit for the result. Should the value IN exceed the upper limit Max, LIMIT will return Max. Should IN fall below Min, the result will be Min.

IN and OUT can be any type of variable.

Example in IL:

LD 90

LIMIT 30,80

ST Var1 (* Result is 80 *)