NAME_AND_LOG
Last updated
Was this helpful?
NAME_AND_LOG evaluates an expression, logs its result under a given name for debugging purposes, and then returns the result unchanged. It is a transparent wrapper — the rule behaves identically with or without it.
This is useful when troubleshooting complex rules, as logged values can be inspected without changing the rule's output.
p is Person
NAME_AND_LOG('age_check', YEARS_AGO(p.date_of_birth) >= 18)This evaluates the age check, logs the result under the key age_check, and returns true or false as normal.
Last updated
Was this helpful?
Was this helpful?
