How to use liquid syntax to win leads / Fallbacks

Discover effective techniques to leverage liquid syntax and capture valuable leads. Fallbacks protect you from missing lead data

One of Smartlead's secret weapons is conditional, in text, logic.

You can use logical comparitors to create dynamic message flows that are reactive to data you've used in your CSV or otherwise.

Lets talk about Liquid Syntax

General Syntax

{{#if first_name}} Hey {{first_name}}, {{else}} Hey Mr {{last_name}}, {{/if}}


This code is looking for the existence of first_name and if it exists then it will execute the first bit of the if statement, as that was "true". In a situation the first_name does not exist, it goes to the else condition and execute the second bit of the statement and load "Hey Ms {{ last_name }}".

Here's all the operates that work



How to use liquid syntax to create powerful copy:

{{#if position '==' "founder"}} As the founder of the business... {{ /if }}
Conditional based on a Google review rating

{{#if google_review 'gte' 4}} Congrats on collecting good reviews for your business {{ else }} We'd love to help you increase your reviews {{ /if }}
Another example using numeric operator

{{#if number_of_reviews '<' 15}} Noticed you've got less than 15 reviews, we can get you 40 organic 4.5 star reviews. Can I send you a document highlighting how?{{/if}}
Remember this though:

You need to make sure your operator is wrapped in single quotes '', == won't work but '==' will work
PS:

Potential Errors
- Make sure you've closed all the curly braces correctly
- Ensure you've used single quotes around the operator
- Confirm that the text you've input matches the condition you want it to show for

Did this answer your question?
😞
😐
😁