# Conditional Workflow Logic in Bubble

**URL:** <https://forum.bubble.io/t/conditional-workflow-logic-in-bubble/34054>\
**Category:** Tips\
**Created:** [July 22, 2018, 8:30pm UTC](https://forum.bubble.io/t/conditional-workflow-logic-in-bubble/34054 "2018-07-22T20:30:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric1](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/eric1/32/59857_2.png) [@eric1](https://forum.bubble.io/u/eric1)\
**Post date:** [July 22, 2018, 8:30pm UTC](https://forum.bubble.io/t/conditional-workflow-logic-in-bubble/34054/1 "2018-07-22T20:30:35Z")

</div>

Condensing tips on implementing conditional workflows (if then else) in Bubble after searching and reading documentation and many posts:

1. use “ **only when** ” to test for conditions. This exists in two places:  
a. on the event to run the workflow  
b. on each action in the workflow

2. use “ **and** ” and “ **or** ” to combine conditions

3. make **multiple workflows for the same event** , eg “button is clicked”. It was NOT obvious that this was possible. Thanks @fayewatson for [this post](http://forum.bubble.io/t/how-do-i-create-a-conditional-workflow/21531/2):

4. terminate a workflow early with the action “ **Navigation-\>Terminate this workflow** ”

5. create and trigger **custom workflows** from an event, but “terminate this workflow” only terminates the custom workflow, _not the parent_.

6. use a condition to see if an item exists and create it if not

7. create an API workflow and the action “custom events-\>schedule an API workflow”

Please post further advice examples, links, and correct or improve this tip!

---

<div class="post-metadata">

**Author:** ![subtlemonsters](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/subtlemonsters/32/40792_2.png) [@subtlemonsters](https://forum.bubble.io/u/subtlemonsters)\
**Post date:** [August 16, 2018, 5:57pm UTC](https://forum.bubble.io/t/conditional-workflow-logic-in-bubble/34054/2 "2018-08-16T17:57:51Z")

</div>

> [@eric1](#):
>
> use “ **only when** ” to test for conditions. This exists in two places:  
> a. on the event to run the workflow  
> b. on each action in the workflow

On your #1 I was wondering if there is a best practice for using “only when”? Is it better to use it on the even and have multiple events or better to have multiple actions?
