Equals
Merges the word True or False depending on whether two values are the same. Use it inside another merge tag that expects a true or false value, rather than on its own in your content.
Syntax
{{eq data data2}}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Data | Text | Required | The first value to compare. |
| Data2 | Text | Required | The second value to compare. |
Note: The comparison is case sensitive, soCustomerandcustomerare not equal. That is worth knowing because several neighbouring helpers behave the other way: If equal, If contains and If starts with all ignore capitalization, while this one and Not equal do not. Pass the field through Lowercase first if your data varies.
Note: To show different content based on a comparison, use If equal instead. That merges your own content for each outcome, where this merges only the wordTrueorFalse.
Examples
The examples below are based on the following sample content:
{{eq Contact.FirstName "customer"}}
A. The contact's FirstName field is customer
True
B. The contact's FirstName field is anything else
False