All Collections
Email
Liquid syntax / variable replacement / variable defaults
Liquid syntax / variable replacement / variable defaults

Fallback support for variables

Shivansh Mehendiratta avatar
Written by Shivansh Mehendiratta
Updated over a week ago

Here's an example of how you can use a default text when a variable may not be available for every prospect.

For example, you have a first_name variable but for only 50% of you prospect list, you could use the following to set a default in case you don't have a first_name for a prospect:

{{ first_name | default: "there" }}

Did this answer your question?