If X and Y are true
Conditionally merges different content only when both of two tests are true. Use it where two things have to hold at once, such as a member who is also paid in full.
Syntax
{{#ifAnd data1 data2}}true content{{else}}false content{{/ifAnd}}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Data1 | Boolean | Required | The first true or false value. |
| Data2 | Boolean | Required | The second true or false value. |
Note: Both arguments must read astrueorfalse. Anything else counts as false, so a yes or no field holdingyes,1oronwill not work here.
Tip: To combine comparisons rather than plain true or false fields, nest an operator helper in brackets:
{{#ifAnd (eq Contact.tier "gold") (noteq Contact.status "lapsed")}}Your benefits are active{{else}}Renew to restore your benefits{{/ifAnd}}
Note: Exactly two arguments. For three or more conditions, nest a second ifAnd inside the first.
Examples
The examples below are based on the following sample content:
{{#ifAnd Contact.paidMember Contact.paidInFull}}Thank you for being a valued member!{{/ifAnd}}
A. paidMember is true and paidInFull is true
Thank you for being a valued member!
B. paidMember is true and paidInFull is false
Nothing is merged.
C. Both are false
Nothing is merged.