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 as true or false. Anything else counts as false, so a yes or no field holding yes, 1 or on will 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.

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