If not in
Conditionally merges different content depending on whether a value is absent from a list you give. Use it to speak to everyone outside a set of codes, tiers, or regions.
Syntax
{{#ifNotIn data value}}true content{{else}}false content{{/ifNotIn}}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Data | Text or Number | Required | The value to look for. |
| Value | Text | Required | The list it must not appear in, as values separated by commas. |
Note: The list is a single argument."4,5,6,334"and4,5,6,334both work, but quote it if any value contains a space. Spaces after the commas are ignored.
Note: The match is exact and case sensitive, so a field holdingGoldcounts as absent from a list of"gold, silver"and the true content merges. Pass the field through Lowercase first if your data varies.
Note: An empty field is also absent from the list, so it takes the true branch. If that matters, test for a value first with If not blank.
Examples
The examples below are based on the following sample content:
{{#ifNotIn Contact.programCode "4,5,6,334"}}There are no options available currently.{{/ifNotIn}}
A. The contact's programCode field has a value of 14
There are no options available currently.
B. The contact's programCode field has a value of 5
Nothing is merged.