Adds documentation for OO recipients and operator functions

This commit is contained in:
Simone Mainardi 2020-08-28 18:57:59 +02:00
parent fa00119b56
commit 34b53b8a9b
4 changed files with 31 additions and 0 deletions

View file

@ -36,6 +36,10 @@ user_scripts.field_units = {
-- ##############################################
-- Operator functions associated to user scripts `operator`, which is specified
-- both inside user scripts default configuration values, as well as when user scripts
-- are configured from the UI.
--
user_scripts.operator_functions = {
gt --[[ greater than --]] = function(value, threshold) return value > threshold end,
lt --[[ less than --]] = function(value, threshold) return value < threshold end,