# If Statement in Email

**URL:** <https://community.hubspot.com/t/if-statement-in-email/66636>\
**Category:** CMS Development\
**Created:** [October 6, 2022, 4:06pm UTC](https://community.hubspot.com/t/if-statement-in-email/66636 "2022-10-06T16:06:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![D\_Sheets](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@D\_Sheets](https://community.hubspot.com/u/D_Sheets)\
**Post date:** [October 6, 2022, 4:06pm UTC](https://community.hubspot.com/t/if-statement-in-email/66636/1 "2022-10-06T16:06:35Z")

</div>

I’m trying to have a simple check if a Date Property contains any data.

This is in an email - the Module is setup to allow HUBL. It is working with other IF statements - just stuck on this one.

Here is what i have tried.

{% if contact.g2\_review\_\_\_date is not known %}

{% if contact.g2\_review\_\_\_date is known %}

{% if contact.g2\_review\_\_\_date is defined %}

{% if contact.g2\_review\_\_\_date is undefined %}

{% if contact.g2\_review\_\_\_date is none %}

None of these worked. Is there a simple check to see if a property is “Known”

---

<div class="post-metadata">

**Author:** ![system](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/system/32/124_2.png) [@system](https://community.hubspot.com/u/system)\
**Post date:** [October 7, 2022, 3:25am UTC](https://community.hubspot.com/t/if-statement-in-email/66636/2 "2022-10-07T03:25:54Z")

</div>

Hey [@D\_Sheets](https://community.hubspot.com/t5/user/viewprofilepage/user-id/381363) ,

Can you try this once:

```c-mrkdwn__pre
{% if not module.g2_review___date %}
 // your code here
{% endif %}

```

You can also check the below link for Hubl conditional statements in hubspot - [If statements - HubSpot docs](https://developers.hubspot.com/docs/cms/hubl/if-statements)

I hope this helps!

---

<div class="post-metadata">

**Author:** ![D\_Sheets](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@D\_Sheets](https://community.hubspot.com/u/D_Sheets)\
**Post date:** [October 7, 2022, 12:30pm UTC](https://community.hubspot.com/t/if-statement-in-email/66636/3 "2022-10-07T12:30:07Z")

</div>

Thanks, that is working.
