# Exit (or stop, break) linear workflow based on condition

**URL:** <https://community.weweb.io/t/exit-or-stop-break-linear-workflow-based-on-condition/14689>\
**Category:** How do I?\
**Tags:** design\
**Created:** [November 25, 2024, 10:58am UTC](https://community.weweb.io/t/exit-or-stop-break-linear-workflow-based-on-condition/14689 "2024-11-25T10:58:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BertrandG](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/bertrandg/32/5129_2.png) [@BertrandG](https://community.weweb.io/u/BertrandG)\
**Post date:** [November 25, 2024, 10:58am UTC](https://community.weweb.io/t/exit-or-stop-break-linear-workflow-based-on-condition/14689/1 "2024-11-25T10:58:48Z")

</div>

I have a linear workflow. If I want to just **exit** (end) the workflow if a condition is met (e.g. a value is higher than 30) I currently must use a True/False split and put all actions in the false branch. This is very annoying if I have to add a True/Split to a complicated workflow: I must move all actions into the false branch. And if I remove the condition (I actually had to), I must first move the false steps outside before I can delete the True/False.

A **Pass-through action doesn’t work** , it continues the workflow even if the “break” condition is met. Is there a way to simply exit the workflow? Or did I misunderstood how the pass-through is used?

A break action would also be useful as an action to stop a workflow for testing, e.g. before data is saved.

---

<div class="post-metadata">

**Author:** ![thomlov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/thomlov/32/8591_2.png) [@thomlov](https://community.weweb.io/u/thomlov)\
**Post date:** [November 25, 2024, 12:15pm UTC](https://community.weweb.io/t/exit-or-stop-break-linear-workflow-based-on-condition/14689/2 "2024-11-25T12:15:24Z")

</div>

The “Pass through condition” is the one you are looking for, it works just fine for me.  
The condition needs to return true to continue, and false to stop.

 ![image](https://us1.discourse-cdn.com/flex016/uploads/weweb/original/2X/c/cbabddc7174747ef874b6a8a5ac2663cabf10667.png)

---

<div class="post-metadata">

**Author:** ![BertrandG](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/bertrandg/32/5129_2.png) [@BertrandG](https://community.weweb.io/u/BertrandG)\
**Post date:** [November 26, 2024, 3:59pm UTC](https://community.weweb.io/t/exit-or-stop-break-linear-workflow-based-on-condition/14689/3 "2024-11-26T15:59:23Z")

</div>

Thank you! Now I know why it didn’t work: I assumed it should exit if the result is **true**! This should be mentioned on the help page ([Iterator (for loop) action | WeWeb Documentation](https://docs.weweb.io/workflows/actions/iterator.html#stop-a-loop-pass-through)).
