# "Case" Branching Logic in Workflows

**URL:** <https://community.hubspot.com/t/case-branching-logic-in-workflows/8076>\
**Category:** HubSpot Ideas\
**Tags:** workflows\
**Created:** [March 9, 2018, 4:12pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076 "2018-03-09T16:12:59Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![seliav](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/seliav/32/44643_2.png) [@seliav](https://community.hubspot.com/u/seliav)\
**Post date:** [March 9, 2018, 4:12pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/1 "2018-03-09T16:12:59Z")

</div>

Hi,

It’d be really helpful if If/Then branches could be based on more than one case. For example, if I want to send a specific email to a contact based a property value, and there are 5 property options, this requires 4 If/then branches. Would be great if one block could manage multiple cases.

Following an if/then branch or the above case branch, would be helpful to be able to rejoin branches so that the remaining blocks do not need to be duplicated for each branch. So, if I just wanted to change 1 email in the above example per a property value, but the rest of the workflow is the same, I could build only one series that applies to all 5 branches.

Thanks!

Shawn

---

<div class="post-metadata">

**Author:** ![seliav](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/seliav/32/44643_2.png) [@seliav](https://community.hubspot.com/u/seliav)\
**Post date:** [March 28, 2018, 2:57pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/2 "2018-03-28T14:57:48Z")

</div>

Another thought to add - the above scenario could be address by smart content, but I want to report on the different variations of the email separately, since they go to different personas. If smart content emails had separate reported per variation, that would also be helpful.

---

<div class="post-metadata">

**Author:** ![tankney](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/tankney/32/56182_2.png) [@tankney](https://community.hubspot.com/u/tankney)\
**Post date:** [June 4, 2018, 4:16pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/3 "2018-06-04T16:16:57Z")

</div>

I was coming in to add this exactly. We have multiple URLs that redirect to a main download page and we need to apply lead sources per URL that we can pull out with manual tagging. I’m currently at 13 if/than statements to capture and apply lead sources. This would be much cleaner if I could apply case statements instead of if/than statements.

---

<div class="post-metadata">

**Author:** ![meharrington](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/meharrington/32/78471_2.png) [@meharrington](https://community.hubspot.com/u/meharrington)\
**Post date:** [September 5, 2018, 9:06pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/4 "2018-09-05T21:06:14Z")

</div>

This would be very helpful for us. We have alot of workflows that do different things depending on the location our customer is interested in and since we have 7 locations, we need to have 7 levels of an if statement.

---

<div class="post-metadata">

**Author:** ![wavecenter](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/wavecenter/32/34870_2.png) [@wavecenter](https://community.hubspot.com/u/wavecenter)\
**Post date:** [March 15, 2019, 11:02pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/5 "2019-03-15T23:02:24Z")

</div>

I came in to request a solution to the issue of allowing workflows to rejoin branches, or in other words, to have an IF/THEN/EITHER functionality where we could carry on with the workflow in either event so you don’t have to create duplicate branches. The use case is whenever you want to perform a check to possibly set a value or something and then carry on with the workflow. If the case model can accomplish that, then this is badly needed. I have come across this use case again and again, and still haven’t developed a decent workaround.

---

<div class="post-metadata">

**Author:** ![DevinRZC\_DM](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/devinrzc_dm/32/30191_2.png) [@DevinRZC\_DM](https://community.hubspot.com/u/DevinRZC_DM)\
**Post date:** [July 15, 2019, 5:57pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/6 "2019-07-15T17:57:31Z")

</div>

I really love this idea! Previously, I voted for the option to clone branches within workflows but this seems like it would allow an additional level of simplicity even if it requires a bit of a different breakout that just an if/then branch. It would be cool if HubSpot combined or consider these votes with the votes here to find a great solution and help it carry some weight since it’s a very time consuming issue. [https://community.hubspot.com/t5/HubSpot-Ideas/Clone-branches-within-a-workflow/idi-p/17453](https://community.hubspot.com/t5/HubSpot-Ideas/Clone-branches-within-a-workflow/idi-p/17453)

---

<div class="post-metadata">

**Author:** ![willcurran](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/willcurran/32/191419_2.png) [@willcurran](https://community.hubspot.com/u/willcurran)\
**Post date:** [July 16, 2019, 4:40am UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/7 "2019-07-16T04:40:00Z")

</div>

super powerful! good point

---

<div class="post-metadata">

**Author:** ![zeke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zeke/32/28415_2.png) [@zeke](https://community.hubspot.com/u/zeke)\
**Post date:** [September 19, 2019, 3:02pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/8 "2019-09-19T15:02:21Z")

</div>

Empty

---

<div class="post-metadata">

**Author:** ![meharrington](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/meharrington/32/78471_2.png) [@meharrington](https://community.hubspot.com/u/meharrington)\
**Post date:** [October 21, 2019, 1:04pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/9 "2019-10-21T13:04:50Z")

</div>

Case statement would be very helpful for us. We have 7 locations and have several workflows that have 7 if branches to accomplish.

---

<div class="post-metadata">

**Author:** ![zeke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zeke/32/28415_2.png) [@zeke](https://community.hubspot.com/u/zeke)\
**Post date:** [October 21, 2019, 3:14pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/10 "2019-10-21T15:14:03Z")

</div>

Great to hear! We’re currently developing this solution which will go into a beta and eventually out to all our customers!

---

<div class="post-metadata">

**Author:** ![jedpaulson](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jedpaulson/32/53612_2.png) [@jedpaulson](https://community.hubspot.com/u/jedpaulson)\
**Post date:** [November 14, 2019, 8:01pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/11 "2019-11-14T20:01:02Z")

</div>

YES PLEASE. The IF ELSE daisy chains are killing us!!!

---

<div class="post-metadata">

**Author:** ![zeke](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/zeke/32/28415_2.png) [@zeke](https://community.hubspot.com/u/zeke)\
**Post date:** [January 24, 2020, 3:10pm UTC](https://community.hubspot.com/t/case-branching-logic-in-workflows/8076/12 "2020-01-24T15:10:28Z")

</div>

The feautre is now out to all workflows in the new system!

 ![Screen Shot 2020-01-24 at 10.13.21 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/a/b/ab5b94d19fcab86cc788154f54b5d671465899c6.png)  
Example multi condition branching!
