between(int x, int lower, int upper): bool
between(var x, var lower, var upper): bool
Returns true when the variable x lies within a lower and upper border. When lower is above upper, returns true when either x >= upper or x <= lower, this way allowing the comparison of cyclic ranges such as hours of the day or months of the year.
x, lower, upper - any var or int.
if(lower <= upper)
return (x >= lower) and (x <= upper);
return (x >= lower) or (x <= upper);
... // executed when x is between 0..1
... // executed when hour() is above 22 or below 4
sqrt, abs, sign, clamp, min, max, ifelse