If blank
Conditionally merges different content depending on whether a field is empty. Use it to fill a gap when you are missing data for a contact, such as inviting someone to join when they have no member number yet.
Syntax
{{#ifBlank data}}true content{{else}}false content{{/ifBlank}}
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Data | Text, Number, or Date | Required | The value to evaluate. |
Note: Only a field with no value at all counts as blank. A field holding a space counts as filled in, so the false content shows.
Tip: The {{else}} part is optional. Leave it out and nothing merges when the field has a value, as in the example below.
Examples
The examples below are based on the following sample content:
{{#ifBlank Contact.memberNbr}}Become a member today!{{/ifBlank}}
A. The contact's memberNbr field has no value
Become a member today!
B. The contact's memberNbr field has any value
Nothing is merged.