Reputation: 388
I have merge vals working correctly in Mandrill when dynamic text is sent in.
I am trying to do something where if the dynamic content is null, don't show anything.
*|IF:BUY!=null|*
*|BUY|*
*|END:IF|*
When I do this |BUY| appears when BUY is null.
Is there anyway in Mandrill to do conditional merge tags for empty dynamic content?
Upvotes: 1
Views: 1127
Reputation: 122506
You should let Mandrill evaluate the variable:
*|IF:BUY|*
*|BUY|*
*|END:IF|*
This will only show the variable's contents when it's not empty (so not null and not an empty string). This does not match exactly what you asked but may be what you intended to do.
Upvotes: 4