You can use Dynamic block while building your email template, this block will be shown or hidden on the email sent to contacts that match certain rules and filters
To setup your Dynamic block, follow the below steps:
Go to your email template, from the menu on top of the block, click on the filter icon:
Click on Manage Rule Groups to create a new rule.
Next, click on Add New Group to create a new rule or Edit to update an existing rule group.
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.
Close the Manage Rules Groups widow to return to the Manage Content Rules window, click on Add Group Rule to select the group rule you want to apply to the block.
Select the Rule Group you want and click on Add.
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.