# Compare 2 field values in a Workflow

**URL:** <https://community.hubspot.com/t/compare-2-field-values-in-a-workflow/30806>\
**Category:** HubSpot Ideas\
**Tags:** workflows\
**Created:** [January 26, 2021, 7:25pm UTC](https://community.hubspot.com/t/compare-2-field-values-in-a-workflow/30806 "2021-01-26T19:25:53Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ebarton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ebarton/32/102580_2.png) [@ebarton](https://community.hubspot.com/u/ebarton)\
**Post date:** [January 26, 2021, 7:25pm UTC](https://community.hubspot.com/t/compare-2-field-values-in-a-workflow/30806/1 "2021-01-26T19:25:53Z")

</div>

I would like the ability to compare 2 field values in my workflow logic.

Example: If Field A is 50 and Field B is 100 I want to be able to say If Field A \> Field B, do this, otherwise if Field B \> Field A, do this, otherwise if Field A = Field B, do this.

---

<div class="post-metadata">

**Author:** ![ChaosFreak](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/chaosfreak/32/56997_2.png) [@ChaosFreak](https://community.hubspot.com/u/ChaosFreak)\
**Post date:** [November 29, 2022, 4:22pm UTC](https://community.hubspot.com/t/compare-2-field-values-in-a-workflow/30806/2 "2022-11-29T16:22:53Z")

</div>

Wow, it is absolutely crazy that such a simple feature is missing. I’m trying to compare two dates fields, and take a different action if A is later than B or A is earlier than B. This is impossible in HubSpot. What a joke.

---

<div class="post-metadata">

**Author:** ![Thrive](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/thrive/32/19516_2.png) [@Thrive](https://community.hubspot.com/u/Thrive)\
**Post date:** [January 11, 2023, 1:47am UTC](https://community.hubspot.com/t/compare-2-field-values-in-a-workflow/30806/3 "2023-01-11T01:47:35Z")

</div>

This is possible using Zapier, but also using Ops Hub with a little bit of custom code.

---

<div class="post-metadata">

**Author:** ![GSchlegel](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gschlegel/32/77566_2.png) [@GSchlegel](https://community.hubspot.com/u/GSchlegel)\
**Post date:** [February 19, 2024, 4:23pm UTC](https://community.hubspot.com/t/compare-2-field-values-in-a-workflow/30806/4 "2024-02-19T16:23:59Z")

</div>

see [https://community.hubspot.com/t5/CRM/Comparing-Object-Properties-in-workflows/m-p/829703](https://community.hubspot.com/t5/CRM/Comparing-Object-Properties-in-workflows/m-p/829703)

---

<div class="post-metadata">

**Author:** ![ebarton](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ebarton/32/102580_2.png) [@ebarton](https://community.hubspot.com/u/ebarton)\
**Post date:** [February 19, 2024, 4:29pm UTC](https://community.hubspot.com/t/compare-2-field-values-in-a-workflow/30806/5 "2024-02-19T16:29:06Z")

</div>

Thanks, GSchlegel! Neither of those suggestions are really solutions though. I shouldn’t have to set a T/F field and then use that in the workflow. If I wanted to go that far, I’d just do what we’re having to do now, which is use a webhook to utilize the API. I want to be able to do this within the workflow itself and without a third party tool or a developer.
