Zephyr Common Examples

Based on frequent client requests and support tickets, we’ll continue to add examples to this page to help you best utilize Zephyr’s power. Don’t see something? Please contact Support.

Examples

Conditional Based on List Subscription Status

Use:

Within transactional or campaign emails

You want to:

Include a certain part of template code/text in an email only when a user is a member of a particular list.

Scenario:

In this example, we want to display a particular section of HTML when a user is a member of a list in our account called “Master List”.

Syntax:

{if contains(profile.lists, 'Master List')} 
<h3>You're also subscribed to our main deals! Awesome!</h3> 
{/if}

Conditional Based on List

Use:

Within a Sailthru-hosted webpage; for campaign emails

You Want To:

Include a selection of code based on the list used to mail a user.

Scenario:

You may host multiple brands on your account and would like a particular logo to display on an opt-down page, dependent on the list used to send a given campaign. In this example, we want an image to appear on the opt-down page when “Master List” members are sent a campaign and click through to the opt-down page.

Syntax:

{if blast.list == 'Master List'} 
<img src="http://www.mydomain.com/logo.gif"/> 
{/if}

 

Conditional Based on Language Preference (identified by a variable)

Use:

Within transactional or campaign emails HTML or subject line

You want to:

Include a certain part of template code/text in an email for a user that speaks one language and another template code/text for other users.

Scenario:

In this example, we want to display Spanish text for users that have a variable “Language” set to “Spanish; Italian texts whose variable is set to “Italian”l and English text when neither conditional are met.

Syntax:

{if contains(profile.vars.Language, 'Spanish')} Hola {else if contains(profile.vars.Language, 'Italian')} Ciao {else} Hello {/if}
Top