If not equal
Conditionally merges different content depending on whether a value is different from the one you give. Use it to show something only when a field does not hold a particular value, such as a plan name, a status, or a code.
Syntax
{{#ifNotEq data value}}true content{{else}}false content{{/ifNotEq}}
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: The comparison is case sensitive, soGoldandgoldcount as different values.
Important:ifNotEqand If equal are not opposites where capitalization differs.ifEqignores capitalization andifNotEqdoes not, so for a field holdingGoldcompared with"gold", both merge their true content. Where your data's capitalization varies, pass the field through Lowercase first, or useifEqwith its{{else}}branch instead of reaching for this helper.
Examples
The examples below are based on the following sample content:
{{#ifNotEq Contact.code 5}}Your code is not valid.{{else}}Your code is valid.{{/ifNotEq}}
A. The contact's code field has the value 5
Your code is valid.
B. The contact's code field has the value 4
Your code is not valid.