-
Notifications
You must be signed in to change notification settings - Fork 12
Extra Conditional Fields
Justin Kimbrell edited this page Feb 13, 2015
·
4 revisions
Extra Conditional fields all work the same and are designed for you to add custom conditionals that will be validated to determine if the parcel or notification should be sent. To prevent a parcel or notification from sending, simply ensure the parsed value of the conditional evaluates to false
or FALSE
.
Note, Extra Conditional fields are parsed with the Twig template engine.
// Prevent parcel from sending if user.someCustomField is a specified value
{% if user.someCustomField == 'some value' %}false{% endif %}
// Prevent parcel from sending if user.someCustomField is not a specified value
{% if user.someCustomField != 'some value' %}false{% endif %}