If contains
Conditionally merges different content depending on if the data contains the value.
SYNTAX
{{#ifContains data value}}true content{{else}}false content{{/ifContains}}
PARAMETERS
Name | Type | Required | Description |
---|---|---|---|
Data | Text | Required | Data to be evaluated. |
Value | Text | Required | Value to be searched. |
EXAMPLES
The examples below are based on the following sample content:
{{#ifContains Contact.programCode “US”}} United States {{else}} International {{/ifContains}}
A. Contact’s programCode field has a value of 123EU
International
B. Contact’s programCode field has a value of 487US
United States