# Using Dynamic Block in Email Template

Source: https://emailhelp.businesstechlab.com/email-marketing/using-dynamic-block-in-email-template

You can use Dynamic block while building your email template, this block will be shown or hidden in the email sent to contacts that match certain rules and filters

To set up your Dynamic block, follow the below steps:

Go to your email template, from the menu on top of the block, and click on the filter icon.

In the Classic builder:

![](https://cdn.eniston.com/bases/af5dc653-b585-4a52-8394-0f2d64d687f1/attachments/mceclip0_1698337085.png)

In the New builder:

![](https://cdn.eniston.com/bases/af5dc653-b585-4a52-8394-0f2d64d687f1/attachments/mceclip1_1698337097.png)

Click on **Manage Rule Groups** to create a new rule.

![](https://cdn.eniston.com/bases/af5dc653-b585-4a52-8394-0f2d64d687f1/attachments/mceclip2_1698337106.png)

Next, click on **Add New Ruleset** to create a new rule or **Edit** to update an existing rule group.

![](https://cdn.eniston.com/bases/af5dc653-b585-4a52-8394-0f2d64d687f1/attachments/mceclip3_1698337119.png)

Give it a name and add a new Rule. You can add multiple rules and you have the option to select: **Match all rules (AND condition)** or **Match any rule (OR condition)**.

When you finish, click on **Submit**.

![](https://cdn.eniston.com/bases/af5dc653-b585-4a52-8394-0f2d64d687f1/attachments/mceclip4_1698337132.png)

Close the **Manage Rule Groups** window to return to the **Manage Content Rules** window.

Select the Rule Group you want and click on **Add**.

![](https://cdn.eniston.com/bases/af5dc653-b585-4a52-8394-0f2d64d687f1/attachments/mceclip5_1698337142.png)

You can add multiple Rule Groups with the option to select: **Match all rules (AND condition)** or **Match any rule (OR condition).**

Once done, this block will show in the email sent to the contact that matches the rule selected.

[![](https://cdn.eniston.com/bases/af5dc653-b585-4a52-8394-0f2d64d687f1/attachments/blobid1698337155304_1698337153.jpg "GET STARTED.jpg")](https://marketing.virtualexpdesign.com)
