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, so Gold and gold count as different values.
Important: ifNotEq and If equal are not opposites where capitalization differs. ifEq ignores capitalization and ifNotEq does not, so for a field holding Gold compared with "gold", both merge their true content. Where your data's capitalization varies, pass the field through Lowercase first, or use ifEq with 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.

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