# Stranger conditional in email, maybe I found a bug?

**URL:** <https://community.hubspot.com/t/stranger-conditional-in-email-maybe-i-found-a-bug/66287>\
**Category:** APIs & Integrations\
**Tags:** email\
**Created:** [September 30, 2022, 7:43pm UTC](https://community.hubspot.com/t/stranger-conditional-in-email-maybe-i-found-a-bug/66287 "2022-09-30T19:43:23Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adriano-azos](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@adriano-azos](https://community.hubspot.com/u/adriano-azos)\
**Post date:** [September 30, 2022, 7:43pm UTC](https://community.hubspot.com/t/stranger-conditional-in-email-maybe-i-found-a-bug/66287/1 "2022-09-30T19:43:23Z")

</div>

Hello everyone!

I build a module for single email ([doc here](https://legacydocs.hubspot.com/docs/methods/email/transactional_email/single-send-overview)) and I am trying to understand why the email is returning as **FALSE** and that the correct one should come as **TRUE**.  
**Code in module** (type email):

```lia-code-sample
{% if custom.payment_method|upper == "BOLETO" %}
... a div with elements here ...
{% endif %}

Test debugg:
-- debugg: {{ custom.payment_method }} <br>
-- debugg: {{ custom.payment_method == "boleto" }} <br>
-- debugg: {{ custom.payment_method|upper == "BOLETO" }} <br>

```

**POST** (Success):

```lia-code-sample
{
 "emailId": "123123",
 "message": {
 "to": "adriano.silveira@azos.com.br"
 },
 "customProperties": [
 {
 "name": "payment_method",
 "value": "boleto"
 }
 ]
}

```

**Result in email:**

A **DIV** inside conditional not display

```lia-code-sample
Test debugg:
-- debugg: boleto
-- debugg: false
-- debugg: false

```

What is wrong with the code and why **custom.payment\_method == “boleto”** return as **false**?

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 3, 2022, 3:48pm UTC](https://community.hubspot.com/t/stranger-conditional-in-email-maybe-i-found-a-bug/66287/2 "2022-10-03T15:48:31Z")

</div>

Hi, @adriano-azos. Can you add any additional context? This can help the community understand if/how they can assist with your project.

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [October 3, 2022, 3:48pm UTC](https://community.hubspot.com/t/stranger-conditional-in-email-maybe-i-found-a-bug/66287/3 "2022-10-03T15:48:32Z")

</div>

Hi, @adriano-azos. Can you add any additional context? This can help the community understand if/how they can assist with your project.

Thank you! — Jaycee

---

<div class="post-metadata">

**Author:** ![adriano-azos](https://avatars.discourse-cdn.com/v4/letter/a/51bf81/32.png) [@adriano-azos](https://community.hubspot.com/u/adriano-azos)\
**Post date:** [October 3, 2022, 6:55pm UTC](https://community.hubspot.com/t/stranger-conditional-in-email-maybe-i-found-a-bug/66287/4 "2022-10-03T18:55:49Z")

</div>

I updated the post, and now it has more context?
