NAME_AND_LOG¶
Description¶
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.
Example¶
This evaluates the age check, logs the result under the key age_check, and returns true or false as normal.