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 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:
{{#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 wordTrueorFalse.
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.