# How to hide conjunction if not exists?

**URL:** <https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839>\
**Category:** General Discussion\
**Created:** [July 22, 2022, 9:52pm UTC](https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839 "2022-07-22T21:52:26Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [July 22, 2022, 9:52pm UTC](https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839/1 "2022-07-22T21:52:26Z")

</div>

How do I hide conjunction “and” if the Spouse first name does not exist in contact’s database.

I do have a custom field ‘spousefirstname’ in every contacts.

Dear {contactfield=firstname} and {contactfield=spousefirstname}

But not every contacts are married so is there a way to hide the conjunction “and” if the spousefirstname is blank in contact field?

Thank you

---

<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:** [July 23, 2022, 9:22am UTC](https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839/2 "2022-07-23T09:22:35Z")

</div>

It’s really easy to make with the Twig Templates plugin. Have you ever used it?

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [July 25, 2022, 2:26pm UTC](https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839/3 "2022-07-25T14:26:36Z")

</div>

No, I wasn’t aware that it exists.

I wanted to make sure I understood this clearly since English isn’t my primary language. Twig template plugin is a 3rd party right? It’s a php templating script? We can use php in emails?

I looked in configuration → Plugins and I don’t see a Twig template plugin listed in there. Where do I grab this plugin from?

Thank you!

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [July 27, 2022, 2:29pm UTC](https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839/4 "2022-07-27T14:29:29Z")

</div>

Is this the plugin you are posting about?

> **[Twig Templates for Mautic](https://mtcextendee.com/marketplace/twig-templates-for-mautic/)**
>
> Buy now one domain license / 39€ – buy nowunlimited license / 169€ – buy now Buy now one domain license / 39€ – buy nowunlimited license / 169€ – buy now

---

<div class="post-metadata">

**Author:** ![steverobinson](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/steverobinson/32/174_2.png) [@steverobinson](https://forum.mautic.org/u/steverobinson)\
**Post date:** [July 27, 2022, 6:34pm UTC](https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839/5 "2022-07-27T18:34:47Z")

</div>

Yep. That plugin should do the trick. We’ve bought it for several clients and been happy with it.

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [July 27, 2022, 8:36pm UTC](https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839/6 "2022-07-27T20:36:04Z")

</div>

Thank you for letting me know and sharing your experience with this plugin!

---

<div class="post-metadata">

**Author:** ![techbill](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/techbill/32/8325_2.png) [@techbill](https://forum.mautic.org/u/techbill)\
**Post date:** [July 28, 2022, 10:00pm UTC](https://forum.mautic.org/t/how-to-hide-conjunction-if-not-exists/24839/7 "2022-07-28T22:00:42Z")

</div>

@joeyk @steverobinson

Thank you for suggesting the plugin. We brought it and got it working on the first setup. Just exactly the way we wanted.

Thanks again!
