If not equal
Conditionally merges different content depending on if the condition is true (if x != y) or false.
SYNTAX
{{#ifNotEq data value}}true content{{else}}false content{{/ifNotEq}}
PARAMETERS
Name | Type | Required | Description |
---|---|---|---|
Data | Text or Number | Required | Data to be evaluated. |
Value | Text or Number | Required | Value that data is being compared to. |
EXAMPLES
The examples below are based on the following sample content:
{{#ifNotEq Contact.code 5}} Dang it! Your code isn’t valid. {{else}} Congrats! Your code is valid! {{/ifNotEq}}
A. Contact’s code field has the value 5
Congrats! Your code is valid!
B. Contact’s code field has the value 4
Dang it! Your code isn’t valid.