Year is not
Merges different content depending on whether a date falls outside a given year.
Syntax
There are two ways to use this tag.
Check a date you supply:
{{#ifNotYearIs date value}}true content{{else}}false content{{/ifNotYearIs}}
Check today's date:
{{#ifNotYearIs value}}true content{{else}}false content{{/ifNotYearIs}}
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 four digit year to check against, such as 2026. |
Note: When you leave the date out, "today" means today in your account's time zone, not UTC. Your email still sends normally whatever the values are.
Examples
A. Checking a contact's date
{{#ifNotYearIs Contact.signupDate "2026"}}Thanks for staying with us{{else}}Welcome aboard{{/ifNotYearIs}}
Shows the returning-customer note when the contact did not sign up in 2026.
B. Checking today
{{#ifNotYearIs "2026"}}Thanks for staying with us{{else}}Welcome aboard{{/ifNotYearIs}}
Shows the returning-customer note except during 2026.
If the date or the value cannot be read, it is not treated as a match, so true content is shown.