Preference conditions
Power advanced conditional logic in your preferences.
Preference conditions are Knock condition models that are evaluated when computing the current state of your preferences during workflow execution.
Overview#
Typically, a PreferenceSet
evaluates to boolean values representing whether your recipient has opted in or out of receiving notifications on a given channel, workflow, or category.
With preference conditions you can add additional custom expressions to a PreferenceSet
, where the notification is only sent if all preferences (including every condition in the preference conditions
list) evaluate to true
at runtime.
Below is an example of a workflow preference that has conditions applied to determine if the preference is true
or false
:
Set preference conditions for a user#
Here's how to set preference conditions for a user.