# Why hasn't Mautic implemented control logic in the editors?

**URL:** <https://forum.mautic.org/t/why-hasnt-mautic-implemented-control-logic-in-the-editors/22326>\
**Category:** General Discussion\
**Created:** [January 13, 2022, 4:41pm UTC](https://forum.mautic.org/t/why-hasnt-mautic-implemented-control-logic-in-the-editors/22326 "2022-01-13T16:41:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [January 13, 2022, 4:41pm UTC](https://forum.mautic.org/t/why-hasnt-mautic-implemented-control-logic-in-the-editors/22326/1 "2022-01-13T16:41:25Z")

</div>

Hi,

I’m just being curios: Why is it that Mautic doesn’t ship with simple flow controll structures like `IF`/`ELSE` and `WHILE`/`FOR`?

I know that there’s a paid plugin that adds Twig. I’m just wondering why that isn’t built-in?

Regards

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 15, 2022, 7:34am UTC](https://forum.mautic.org/t/why-hasnt-mautic-implemented-control-logic-in-the-editors/22326/2 "2022-01-15T07:34:38Z")

</div>

There are conditions in the campaign editor. The twig plugin has no effect in the campaign workflow editor.  
What are you trying to achieve?

---

<div class="post-metadata">

**Author:** ![peter\_k](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/peter_k/32/511_2.png) [@peter\_k](https://forum.mautic.org/u/peter_k)\
**Post date:** [January 15, 2022, 10:12am UTC](https://forum.mautic.org/t/why-hasnt-mautic-implemented-control-logic-in-the-editors/22326/3 "2022-01-15T10:12:11Z")

</div>

I wasn’t clear in my posting. I meant:

Why is it that Mautic doesn’t ship with simple flow control structures like `IF` / `ELSE` and `WHILE` / `FOR` **in the email builder**?

That’s why I mentioned the paid twig plugin, because it adds the functionality, but I wonder why something like that hasn’t already been implemented as core functionality.

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 15, 2022, 10:34am UTC](https://forum.mautic.org/t/why-hasnt-mautic-implemented-control-logic-in-the-editors/22326/4 "2022-01-15T10:34:37Z")

</div>

What would be the While case in the email builder?

---

<div class="post-metadata">

**Author:** ![joeyk](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/joeyk/32/11164_2.png) [@joeyk](https://forum.mautic.org/u/joeyk)\
**Post date:** [January 15, 2022, 12:48pm UTC](https://forum.mautic.org/t/why-hasnt-mautic-implemented-control-logic-in-the-editors/22326/5 "2022-01-15T12:48:12Z")

</div>

Mautic 2, 3 had dynamic content in emails, where you could filter for different attributes to show content. With M4 this feature is not ready, but there are people pushing it forward, so I hope it will come. Until then there is the super flexible, mega cheap, less user friendly Twig plugin 🙂
