Expressions

Expressions are Rule language constructs that access or compute values.
They always evaluate to a value and do not modify data. Expressions can include:

Examples

Attribute access
the age of 'the customer'

This expression evaluates to a numeric value representing the customer’s age.

Arithmetic expression
the price of 'the item' * 'the quantity'

This expression evaluates to a calculated numeric value.

Boolean expression
'the total amount' is greater than 100

This expression evaluates to either true or false.

Function expression
max(the score of 'the applicant', 600)

This expression evaluates to a numeric value returned by the function.

For more examples and supported syntax, see Conditions and Data types and functions.