If X or Y is true

Conditionally merges different content when either of two tests is true. Use it to treat two groups the same way, such as thanking both paying and free members.

Syntax

{{#ifOr data1 data2}}true content{{else}}false content{{/ifOr}}

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:
{{#ifOr (eq Contact.tier "gold") (eq Contact.tier "silver")}}Members only{{else}}Everyone else{{/ifOr}}
That is what Equals and Not equal are for, since they merge the word True or False.
Note: Exactly two arguments. For three or more conditions, nest a second ifOr inside the first.

Examples

The examples below are based on the following sample content:

{{#ifOr Contact.paidMember Contact.freeMember}}Thank you for being a member!{{/ifOr}}

A. paidMember is true and freeMember is true

Thank you for being a member!

B. paidMember is true and freeMember is false

Thank you for being a member!

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