# Struggling with Programmable Email Beta - Conditional Logic

**URL:** <https://community.hubspot.com/t/struggling-with-programmable-email-beta-conditional-logic/43716>\
**Category:** Email Marketing Tool\
**Tags:** enterprise\
**Created:** [September 13, 2021, 10:45am UTC](https://community.hubspot.com/t/struggling-with-programmable-email-beta-conditional-logic/43716 "2021-09-13T10:45:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KimM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kimm/32/98942_2.png) [@KimM](https://community.hubspot.com/u/KimM)\
**Post date:** [September 13, 2021, 10:45am UTC](https://community.hubspot.com/t/struggling-with-programmable-email-beta-conditional-logic/43716/1 "2021-09-13T10:45:31Z")

</div>

I have signed up for the Programmable Email Beta and wanting to create an email that checks a contact property (contact.sessions\_registered\_2021) and displays a certain table row depending on what values it holds. The property is a multiple select property with options being (Session 1, Session 2, Session 3).

I’ve added a sample of what I’ve got below so far below, but I cannot get it to work. I’m not a developer and there is limited documentation on this as it’s still in Beta, Hubspot support has been a bit slow as well, so hoping someone in the community might be able to help me.

```lia-code-sample
<table width="100%">
<tbody>
<tr>
<th colspan="3" style="background-color:#0094d3; padding:5px;">
<p style="color:#fff;text-align:left;font-family:rubik;font-size:13px">Monday</p>
</th>
</tr>
{% if contact.sessions_registered_2021 is containing 'Session 1' %}
<tr>
<td width="18%">
<p style="text-align:left;font-family:rubik;font-size:12px;">Session 1 Details</p>
</td>
</tr>
{% endif %}
{% if contact.sessions_registered_2021 is containing 'Session 2' %}
<tr>
<td width="18%">
<p style="text-align:left;font-family:rubik;font-size:12px;">Session 2 Details</p>
</td>
</tr>
{% endif %}
<tr>
<th colspan="3" style="background-color:#0094d3; padding:5px;">
<p style="color:#fff;text-align:left;font-family:rubik;font-size:13px">Tuesday</p>
</th>
</tr>
{% if contact.sessions_registered_2021 is containing 'Session 3' %}
<tr>
<td width="18%">
<p style="text-align:left;font-family:rubik;font-size:12px;">Session 3 Details</p>
</td>
</tr>
{% endif %}
</tbody>
</table>

```

Any guidance would be so helpful. Thanks in advance.

---

<div class="post-metadata">

**Author:** ![natsumimori](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/natsumimori/32/39807_2.png) [@natsumimori](https://community.hubspot.com/u/natsumimori)\
**Post date:** [September 14, 2021, 4:24am UTC](https://community.hubspot.com/t/struggling-with-programmable-email-beta-conditional-logic/43716/2 "2021-09-14T04:24:17Z")

</div>

Thank you for your post @KimM .

@JBeatty and @Indra , is this something you have experience with?

---

<div class="post-metadata">

**Author:** ![Indra](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/indra/32/98381_2.png) [@Indra](https://community.hubspot.com/u/Indra)\
**Post date:** [September 28, 2021, 7:19am UTC](https://community.hubspot.com/t/struggling-with-programmable-email-beta-conditional-logic/43716/3 "2021-09-28T07:19:54Z")

</div>

@natsumimori thanks for mentioning.

Hi @KimM did you check the output `{{ contact.sessions_registered_2021 }}` of your variable.

Perhaps you can check out other conditinal logics from the [Operators & Expression](https://developers.hubspot.com/docs/cms/hubl/operators-and-expression-tests) and like:

`{% if contact.sessions_registered_2021 == 'Session 1' %}`

---

<div class="post-metadata">

**Author:** ![KimM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kimm/32/98942_2.png) [@KimM](https://community.hubspot.com/u/KimM)\
**Post date:** [September 29, 2021, 2:03pm UTC](https://community.hubspot.com/t/struggling-with-programmable-email-beta-conditional-logic/43716/4 "2021-09-29T14:03:03Z")

</div>

Hi Indra,

I’m afraid this doesn’t solve the issue as the property is a multiple select, so I need to use the ‘containing’ expression.

However, I have found the solution to the problem now thanks to Hubspot support. I wasn’t actually accessing the value when writing the statement. So instead of:

`{% if contact.sessions_registered_2021 is containing 'Session 1' %}`

it should be:

`{% if contact.sessions_registered_2021.value is containing 'Session 1' %}`

Thanks to Hubspot support for looking into this for me. I imagine this will become a lot more clear in the documentation once the product is out of beta.
