Skip to content

Using conditionals in an email

When building an email, you can either apply a reusable conditional or define an inline conditional as a one-off.

See Defining conditionals for more information about branches, conditional syntax, Dynamic Content Profiles, and creating reusable conditionals.

When you apply a conditional to a component, EmailShepherd creates a version of that component for each branch. Each version can be edited independently, enabling you to show different content to different recipients.

Open the component and select the pie chart icon to open Choose conditional.

Component conditional settings

Choose between no conditional, a reusable conditional, and an inline conditional

  1. Select Reusable conditional.
  2. Choose a conditional from the list.
  3. Select Save.
  1. Select Inline conditional.
  2. Add the branches and give each one a unique label.
  3. Enter the default syntax for each branch and the closing syntax.
  4. If you use Dynamic Content Profiles, select a profile tab and then Customize syntax to enter an override. Select Use default syntax to discard an override.
  5. Select Save.

Defining branches and syntax for an inline conditional

For more information about branches and syntax, see Defining conditionals.

Templates let you save an inline conditional and reuse it as a starting point in other emails.

To save the inline conditional you have defined, select Save as template below the branch editor and give the template a name.

To start from a template, select Copy from a template and choose a template from the list. This copies the template’s branches and syntax into the editor, where you can adjust them freely — your changes do not affect the template itself.

Choosing a conditional template to start from

To delete a template, select the trash icon beside it in the template list.

Once the conditional is applied, the component list and preview show a version of the component for each branch.

Component conditional branches

Component conditional branches in the preview

Select each branch in the component list to edit its content independently.

Using a conditional in a subject or preheader

Section titled “Using a conditional in a subject or preheader”

Open the Settings tab and select the pie chart icon beside the subject or preheader.

Subject conditional settings

Select Reusable conditional and choose an existing conditional, or select Inline conditional and define one using the steps above. Select Save when you are finished.

You can then enter different subject or preheader content for each branch.

Subject conditional branches

Use Filter conditionals to show or hide branches while reviewing how the email will look for different recipients.

Filter conditional branches