Next: I/O Flags in Rules, Previous: Mathematical Operators, Up: Expressions: The Engine of STARTER [Contents]
To simplify complex rules, STARTER provides a set of powerful functions:
MIN(arg1, arg2, ...)Returns the lowest value in a list.
MAX(arg1, arg2, ...)Returns the highest value in a list.
ROUND(value)Rounds to the nearest whole integer.
LIMIT(value, min, max)Clamps a value. If it goes below min, it returns min; if above max, it returns max.
CHANGED(id)This is a special one. It returns 1 (TRUE) only if the value of that specific id has changed since the last evaluation. It’s perfect for triggering actions only on a fresh update.