Year is
Conditionally merges different content depending on if the date contains the year.
SYNTAX
{{#ifyearis data value}}true content{{else}}false content{{/ifyearis}}
PARAMETERS
Name | Type | Required | Description |
---|---|---|---|
Data | Text | Required | Data to be evaluated. |
Value | Text | Required | Value to be searched. |
EXAMPLES
The examples below are based on the following sample content:
{{#ifyearis Contact.ConfirmedUtc "2022"}} Welcome! {{else}} Thanks for returning! {{/ifyearis}}<br>
A. Contact’s ConfirmUtc field has a value of 2022 for the year
Welcome!
B. Contact’s ConfirmUtc field has a value of 2023 for the year
Thanks for returning!