If equal
Conditionally merges different content depending on whether a value matches the one you give. This is the workhorse of conditional content: show one thing to gold members and another to everybody else.
Syntax
{{#ifEq data value}}true content{{else}}false content{{/ifEq}}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Data | Text or Number | Required | The value to evaluate. |
| Value | Text or Number | Required | The value it is compared against. |
Note:ifEqignores capitalization, so a field holdingGoldmatches"gold".
Important:ifEqand If not equal are not opposites where capitalization differs.ifEqignores it andifNotEqdoes not, so for a field holdingGoldcompared with"gold", both merge their true content. If you need a reliable pair, put the field through Lowercase first, or useifEqwith its{{else}}branch rather than reaching forifNotEq.
Examples
The examples below are based on the following sample content:
{{#ifEq Contact.points 5}}You qualify.{{else}}You do not qualify yet.{{/ifEq}}
A. The contact's points field has the value 5
You qualify.
B. The contact's points field has the value 4
You do not qualify yet.