name_and_log (debug)

Description

name_and_log is useful if you want to debug your rula formula. It gives a name to a part of the expression and outputs it in the case debug values.

Example

name_and_log('last_name_long_enough', len(self.last_name) > 10)

This expression calculates if the last_name of a person (within a calculated rule, since self is used) is longer than 10 characters. It then takes the result of the expression and assigns it to a debug value last_name_long_enough that can be accessed in the case wizard's debug values.

Last updated