If birthday not in date range

Conditionally merges different content depending on whether a contact's birthday falls outside a range of dates. Use it for the message everyone else should see while a birthday offer runs.

Syntax

{{#ifNotBirthdayDateRange date startDate endDate}}true content{{else}}false content{{/ifNotBirthdayDateRange}}

Parameters

Name Type Required Description
Date Date Required The birthday to evaluate, normally a Birthday field on the contact.
Start Date Date Required The first day of the range, written as month and day.
End Date Date Required The last day of the range, written as month and day.
Note: Write the range as month and day with no year, such as "10/1" and "10/31". A Birthday field holds only a month and a day, with no birth year, so a range carrying a year matches nobody and the true content shows for everyone.
Note: Both days are part of the range, so a birthday on the first or the thirty-first counts as inside it and the true content does not show.
Note: A range cannot cross the end of the year. "12/15" to "1/15" leaves everybody outside it, because the end of the range falls before the start.

Examples

The examples below are based on the following sample content:

{{#ifNotBirthdayDateRange Contact.Birthday "10/1" "10/31"}}Your birthday offer is on its way when your month comes around.{{/ifNotBirthdayDateRange}}

A. The contact's Birthday field is 9/30

Your birthday offer is on its way when your month comes around.

B. The contact's Birthday field is 10/15

Nothing is merged.

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us