Skip to main content

Advanced variables

Adjust your messages based on conditions, dates, and available contact data

Written by Dasha Leshchenko

Advanced variables help you make your messages more flexible and relevant by working with conditions, dates, and fallbacks. You can combine variables and apply simple logic so your messages automatically adapt based on timing or the data you have about a contact. Advanced variables are grouped into three types:

  • Fallback variables

  • Conditional variables

  • Date variables

To add an advanced variable:

  1. Create a new sequence or open an existing one.

  2. Open or add the step you want to edit (for example, an email, LinkedIn message, or SMS).

  3. Click the Variables icon in the top-left corner of the editor.

  4. In the variables window, go to the Advanced tab.

  5. Select the advanced variable you want to insert.

  6. Save!

Fallback variables

Fallback variables are useful when some contact data is missing. If a variable is empty, Reply will automatically replace it with a default value you define.

Variable

Description

Example

{{Title | 'sales leader'}}

If the contact doesn't have a job title, Reply will use 'sales leader' instead.

I know you're very busy as a {{Title | 'sales leader'}}, but I've been wanting to have a quick chat about our new offer. → I know you're very busy as a sales leader, but I've been wanting to have a quick chat about our new offer.

{{Company | 'your company'}}

If the contact's company is missing, Reply will replace it with 'your company'.

I've been wanting to have a quick chat about bringing our service to {{Company | 'your company'}}. → I've been wanting to have a quick chat about bringing our service to your company.

{{Random | 'random' | 'word' | 'or sentences'}}

Will randomly return one of the words from the list.

Would you be open to a {{Random | 'quick call' | 'short chat' | 'brief conversation'}} this week? → Would you be open to a short chat this week?

Conditional variables

Conditional variables let you adjust your message based on specific conditions, using a simple if/else structure.

Variable

Description

Example

{{#if A}} Text to show if A is not empty {{else}} Text to show if A is empty {{/if}}

Shows one text if A has a value, and another if it doesn't. A can be a variable or a condition.

{{#if Opens>=1}} Welcome back! {{else}} Nice to meet you! {{/if}} → Welcome back! (if the contact opened emails at least once)

OR

Nice to meet you! (if the contact has no opens)

{{#if is_monday}} Have a nice working week! {{else}} Have a nice day! {{/if}} → Have a nice working week (if today is Monday)

OR

Have a nice day! (any other day)

{{#if A == B }} Text to show if true {{else}} Text to show if false{{/if}}

A and B represent two values you want to compare. If they're the same, the message shows the text between {{#if}} and {{else}}. If they're different, it shows the text after {{else}}.

{{#if Title == 'Marketing Director' }} We have an offer for you! {{else}} It may be interesting for you.{{/if}} → We have an offer for you! (if the recipient is Marketing Director)

OR

It may be interesting for you. (any other title)

{{#if A != B }} Text to show if true {{else}} Text to show if false{{/if}}

A and B represent two values you want to compare. If they're NOT the same, the message shows the text between {{#if}} and {{else}}. If they are the same, it shows the text after {{else}}.

{{#if Title != 'Marketing Director' }} Please forward this to your marketing person. {{else}} It may be interesting for you. {{/if}} → Please forward this to your marketing person. (if the recipient is not Marketing Director)

OR

It may be interesting for you. (if the recipient is Marketing Director)

{{#if A > B }} Text to show if true {{else}} Text to show if false{{/if}}

A and B represent two values you want to compare. Shows the first text if A is greater than B, otherwise shows the second text.

{{#if Opens > 5 }} I see you are interested in our product. {{else}} Check out our new product! {{/if}} → I see you are interested in our product. (if opens > 5)

OR

Check out our new product!

(if opens ≤ 5)

Date variables

Date variables help you personalize messages based on timing, such as the day, date, or time a message is sent.

Variable

Description

Example

{{#if is_monday}}{{/if}}

Shows the text between {{#if is_monday}} and {{/if}} only if the email is sent on Monday

{{#if is_monday}} Have a nice working week! {{/if}} → Have a nice working week! (if sent on Monday)

{{#if is_tuesday}}{{/if}}

Shows the text between {{#if is_tuesday}} and {{/if}} only if the email is sent on Tuesday

{{#if is_tuesday}} Have a nice Tuesday! {{/if}} → Have a nice Tuesday!

(if sent on Tuesday)

{{#if is_wednesday}}{{/if}}

Shows the text between {{#if is_wednesday}} and {{/if}} only if the email is sent on Wednesday

{{#if is_wednesday}} Have a nice Wednesday! {{/if}} → Have a nice Wednesday!

(if sent on Wednesday)

{{#if is_thursday}}{{/if}}

Shows the text between {{#if is_thursday}} and {{/if}} only if the email is sent on Thursday

{{#if is_thursday}} Have a nice Thursday! {{/if}} → Have a nice Thursday!

(if sent on Thursday)

{{#if is_friday}}{{/if}}

Shows the text between {{#if is_friday}} and {{/if}} only if the email is sent on Friday

{{#if is_friday}} Hope your week was productive. {{/if}} → Hope your week was productive.

(if sent on Friday)

{{#if is_saturday}}{{/if}}

Shows the text between {{#if is_saturday}} and {{/if}} only if the email is sent on Saturday

{{#if is_saturday}} Sorry to disturb you on the weekend. {{/if}} → Sorry to disturb you on the weekend.

(if sent on Saturday)

{{#if is_sunday}}{{/if}}

Shows the text between {{#if is_sunday}} and {{/if}} only if the email is sent on Sunday

{{#if is_sunday}} Wishing you a relaxing Sunday!{{/if}} → Wishing you a relaxing Sunday!

(if sent on Sunday)

{{#if is_weekday}}{{/if}}

Shows the text between {{#if is_weekday}} and {{/if}} only if the email is sent on a weekday

{{#if is_weekday}} Have a productive week! {{/if}} → Have a productive week!

(if sent on a weekday)

{{#if is_weekend}}{{/if}}

Shows the text between {{#if is_weekend}} and {{/if}} only if the email is sent on a weekend.

{{#if is_weekend}} Have an amazing weekend! {{/if}} → Have an amazing weekend!

(if sent on a weekend)

{{today}}

Inserts the day of the week when the email is sent

Today is {{today}}. I’ll give you time to think and contact you on {{tomorrow}} again. → Today is Monday. I’ll give you time to think and contact you on Tuesday again.

{{tomorrow}}

Inserts the day after the email is sent

I’ll contact you on {{tomorrow}} again. → I’ll contact you on Tuesday again.

{{now_date}}

Inserts the date when the email is sent

Here's your invoice for {{now_date}}. → Here's your invoice for December 22, 2025.

{{now_month}}

Inserts the month when the email is sent

We are planning new products in {{now_month}}. →We are planning new products in August.

{{now_quarter}}

Inserts the quarter when the email is sent

I’ll send you a report about {{now_quarter}}. → I’ll send you a report about Q4.

{{now_year}}

Inserts the year when the email is sent

{{now_year}} was a tough year. → 2025 was a tough year.

{{days_from_now N}}

Inserts the day of the week N days after the email is sent (including weekends)

I’ll write to you on {{days_from_now 2}}. → I’ll write to you on Friday.

(if sent on Wednesday)

{{weekdays_from_now N}}

Inserts the day of the week N business days after the email is sent (excluding weekends)

I’ll write to you on {{weekdays_from_now 3}}. → I’ll write to you on Monday.

(if sent on Wednesday)

{{days_before_now N}}

Inserts the day of the week N days before the email was sent (including weekends)

We released an updated app on {{days_before_now 2}}. → We released an updated app on Monday.

(if sent on Wednesday)

{{weekdays_before_now N}}

Inserts the day of the week N business days before the email was sent (excluding weekends)

We released an updated app on {{weekdays_before_now 3}}. → We released an updated app on Friday.

(if sent on Wednesday)

{{month_from_now N}}

Inserts the month N months after the email is sent

Let's resume this discussion in {{month_from_now 2}}. → Let's resume this discussion in October.

(if sent in August)

{{quarter_from_now N}}

Inserts the quarter N quarters after the email is sent

You will get the first result in the {{quarter_from_now 2}}. → You will get the first result in the Q1.

(if sent in Q3)

{{time_of_the_day}}

Displays a greeting depending on the time the email is sent

{{time_of_the_day}}, Mark! → afternoon, Mark!

(depending on the time when you send the email)

The timeframes are:

00:00 - 5:59 - night
6:00 - 11:59 - morning
12:00 - 17:59 - afternoon
18:00 - 23:59 - evening

{{day_of_week}}

Inserts the day of the week when the email is sent

Have a nice {{day_of_week}}! → Have a nice Wednesday!

(if sent on Wednesday)

👉 Related articles:

Did this answer your question?