Welcome to Benchmark!

Benchmark Team

HTML Tips & Tricks - Merge Tags for Conditional Formatting

Feb 28 2011, 04:46 PM by

Want to send multiple recipients the same newsletter but with unique content for each one? No problem. With the following HTML tags you can specify which information goes where and how you want to codify the destinations.

You can use the following codes to create emails with variable content based on individual contact details. The recipient can see uniquely created emails based on their name, email, state or any other custom field.
[if:fieldname=value]
This will evaluate the value of the field and proceed if there is a match. The field refers to the name of the column

[elseif: fieldname=value]
This will provide the alternative content if the given condition is satisfied.

[else]
This will provide an alternative content, in case the above conditions fail.

[endif]
This is to mark the end of the conditional statements.



For example:

If you want to add an additional message for recipients who are from California (based on the State column in their contact list), you can create the following construct:

[if:State=CA]

      We have a meeting on February 24th.

[endif]



If you want to add an additional message for recipients who are from California and a different one for contacts from Texas (based on the State column in their contact list), you can create the following construct:

[if:State=CA]

      We have a meeting on February 24th.

[elseif:State=TX]


      We have a meeting on February 28th.

[endif]



If you want to add an additional message for recipients who are from California (based on the State column in their contact list) and another for all others, you can create the following construct:

[if:State=CA]

      We have a meeting on February 24th.

[else]


      We have a meeting on February 28th.

[endif]



If you want to add an additional message for recipients who are from California and a separate one for contacts from Texas (based on the State column in their contact list) and a separate one for all others, you can create the following construct

[if:State=CA]

     We have a meeting on February 24th.

[elseif:State=TX]

     We have a meeting on February 28th.

[else]

     We have no meetings this month.

[endif]


To see all the merge tags available in Benchmark Email, click here

Posted in New Features & Updates

Related Blogs

Post a new comment

POST YOUR COMMENT

Comment With Facebook