Day is not
Merges different content depending on whether a date falls on a day other than the one given.
Syntax
There are two ways to use this tag.
Check a date you supply:
{{#ifNotWeekDayIs date value}}true content{{else}}false content{{/ifNotWeekDayIs}}
Check today's date:
{{#ifNotWeekDayIs value}}true content{{else}}false content{{/ifNotWeekDayIs}}
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 week to check against, from 1 for Sunday to 7 for Saturday. |
Note: When you leave the date out, "today" means today in your account's time zone, not UTC. Days are numbered from 1 for Sunday through to 7 for Saturday.
Examples
A. Checking a contact's date
{{#ifNotWeekDayIs Contact.signupDate "6"}}Have a good week{{else}}Have a good weekend{{/ifNotWeekDayIs}}
Shows the weekday note when the contact did not sign up on a Friday.
B. Checking today
{{#ifNotWeekDayIs "6"}}Have a good week{{else}}Have a good weekend{{/ifNotWeekDayIs}}
Shows the weekday note on any day but Friday.
If the date or the value cannot be read, it is not treated as a match, so true content is shown.