Day number is not

Merges different content depending on whether a date falls on a day of the year other than the one given.

Syntax

There are two ways to use this tag.

Check a date you supply:
{{#ifNotDayNumberIs date value}}true content{{else}}false content{{/ifNotDayNumberIs}}

Check today's date:
{{#ifNotDayNumberIs value}}true content{{else}}false content{{/ifNotDayNumberIs}}

The difference is simply how many values you give it. With two, it checks the date you pass. With one, it checks today.

Parameters

Name Type Required Description
Date Date Optional The date to check. Leave it out to check today instead.
Value Number Required The day of the year to check against, from 1 to 366.
Note: When you leave the date out, "today" means today in your account's time zone, not UTC. The number is the day of the YEAR, from 1 to 366, not the day of the month. 30 January is day 30, and 1 February is day 32.

Examples

A. Checking a contact's date

{{#ifNotDayNumberIs Contact.signupDate "30"}}Thanks for being with us{{else}}Happy anniversary{{/ifNotDayNumberIs}}
Shows the standard note when the contact did not sign up on day 30 of the year.

B. Checking today

{{#ifNotDayNumberIs "30"}}Thanks for being with us{{else}}Happy anniversary{{/ifNotDayNumberIs}}
Shows the standard note on any day but day 30.

If the date or the value cannot be read, it is not treated as a match, so true content is shown.
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