Setting Default Values

Set default fallback values for any personalization attribute that you use in your messages. Default values can be added by specifying a Liquid Filter (use | to distinguish the filter inline, as shown below) with the name “default.”

1
 | default: 'Insert Your Desired Default Here'

If a default value is not provided and the field is missing or not set on the user, the field will be blank in the message.

The example below shows the correct syntax for adding a default value. In this case, the words “Valued User” will replace the attribute {{ ${first_name} }} if a user’s first_name field is blank or unavailable.

1
Hi {{ ${first_name} | default: 'Valued User' }}, thanks for using the App!

To a user named Janet Doe, the message would appear to the user as either:

1
Hi Janet, thanks for using the App!

Or…

1
Hi Valued User, thanks for using the App!
WAS THIS PAGE HELPFUL?
New Stuff!