If in
Conditionally merges different content depending on if the data is found within the collection of values that follow.
SYNTAX
{{#ifIn data value}}true content{{else}}false content{{/ifIn}}
PARAMETERS
Name | Type | Required | Description |
---|---|---|---|
Data | Text or Number | Required | Data to be evaluated. |
Value | Text or Number (collection) | Required | Comma-separated values that data is being compared to. |
EXAMPLES
The examples below are based on the following sample content:
{{#ifIn Contact.programCode 4,5,6,334}} You qualify for a discount on your next order! {{/ifIn}}
A. Contact’s programCode field has a value of 5
You qualify for a discount on your next order!
B. Contact’s programCode field has a value of 14
No content is merged