How do I set a fallback variable in my email templates?

Hi HubSpot Community,

I’m looking for a way to set up fallback text for personalization tokens in HubSpot emails. For example, if the First Name property is blank, I’d like to display a default value like “there” or “Valued Customer” instead.

I know some platforms allow you to do this using syntax like:

Hi {{ First Name | fallback: “there” }},

However, this doesn’t seem to work in HubSpot. Does anyone know if there’s a built-in way to handle this, or do I need to use workflows, smart content, or another workaround?

Any tips, suggestions, or best practices would be greatly appreciated!

Thanks in advance for your help!

Hey @Sellific you just need to set a default value for your personalization tokens and this will be used as the fallback value!

not really, because I need this for regular emails. Article you shared is related to marketing email, and I need this for sequences.

HubSpot still does not offer this functionality in emails used in sequences…
https://community.hubspot.com/t5/HubSpot-Ideas/Personalization-Tokens-Set-a-default-value-in-sequence-email/idi-p/426113#feedback-success