XML: Variable Limiting
From FSDeveloper Wiki
XML: Variable Limiting
Local Variable are often incremented and/or decremented by the value of 1 using ++ or --. The following is a simple way to limit the max and min value.
(L:Variable, number) ++ 30 min (>L:Variable, Number)
This increments the variable by 1, then compares it with your maximum desired value, in this case 30, then assigns the lower of the 2 values to the variable.
(L:Variable, number) -- 0 max (>L:Variable, Number)
This decrements the variable by 1, then compares it with your minimum desired value, in this case 0, then assigns the greater of the 2 values to the variable.