Week is not

Merges different content depending on whether a date falls outside a given week of the year.

Syntax

There are two ways to use this tag.

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

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

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 week of the year to check against, from 1 to 53.
Note: When you leave the date out, "today" means today in your account's time zone, not UTC. Weeks are numbered using the ISO standard, from 1 to 53.

Examples

A. Checking a contact's date

{{#ifNotWeekIs Contact.signupDate "5"}}See all offers{{else}}This week's offer{{/ifNotWeekIs}}
Shows the general offer when the contact did not sign up in week 5.

B. Checking today

{{#ifNotWeekIs "5"}}See all offers{{else}}This week's offer{{/ifNotWeekIs}}
Shows the general offer except during week 5.

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