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: ifEq ignores capitalization, so a field holding Gold matches "gold".
Important: ifEq and If not equal are not opposites where capitalization differs. ifEq ignores it and ifNotEq does not, so for a field holding Gold compared with "gold", both merge their true content. If you need a reliable pair, put the field through Lowercase first, or use ifEq with its {{else}} branch rather than reaching for ifNotEq.

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.

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