# Conditional Blocks

> Show or remove a template section depending on the merge data: merge blocks bound to objects, removeEmptyBlocks and curl and .NET samples for document/merge.

- **Product:** ReportingCloud
- **Section:** Documentation
- **Kind:** Topic
- **Path:** ReportingCloud > Mail Merge > Conditional Blocks
- **Web URL:** https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/
- **LLMs URL:** https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/llms-full.txt

---

## On This Page

- [How Conditional Blocks Work](https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/#how-conditional-blocks-work)
- [Create the Template](https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/#create-the-template)
- [Show or Remove the Block With the Web API](https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/#show-or-remove-the-block-with-the-web-api)
- [Show or Remove the Block With .NET](https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/#show-or-remove-the-block-with-net)
- [Combine Several Optional Sections](https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/#combine-several-optional-sections)
- [Next Steps](https://docs.textcontrol.com/reporting-cloud/mail-merge/conditional-content/#next-steps)

---

## Nearby

- **Previous:** [Images](https://docs.textcontrol.com/reporting-cloud/mail-merge/images/llms.txt)
- **Next:** [HTML Content](https://docs.textcontrol.com/reporting-cloud/mail-merge/html-content/llms.txt)
