# How can i break/stop a workflow?

**URL:** <https://community.weweb.io/t/how-can-i-break-stop-a-workflow/14596>\
**Category:** How do I?\
**Tags:** workflows\
**Created:** [November 19, 2024, 8:15pm UTC](https://community.weweb.io/t/how-can-i-break-stop-a-workflow/14596 "2024-11-19T20:15:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ralmtz](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@ralmtz](https://community.weweb.io/u/ralmtz)\
**Post date:** [November 19, 2024, 8:15pm UTC](https://community.weweb.io/t/how-can-i-break-stop-a-workflow/14596/1 "2024-11-19T20:15:52Z")

</div>

Hello,

I’m wondering how can I avoid “nested if”, i try to reply this in workflow

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

but I don’t know how to stop workflow, is this possible?

---

<div class="post-metadata">

**Author:** ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)\
**Post date:** [November 19, 2024, 9:14pm UTC](https://community.weweb.io/t/how-can-i-break-stop-a-workflow/14596/2 "2024-11-19T21:14:27Z")

</div>

I am not sure exactly what you mean here the code you have provided isn’t nested that would look more like

```auto
if(input !==""){
    if(input ==="foo"{
       return error;
   })   
}
//if you want them in the on if 

if(input ==="" || input2 ==="" ){
    return error;
}

```

if your trying to break a we web workflow before this I would just do an if before running the custom code

---

<div class="post-metadata">

**Author:** ![ralmtz](https://avatars.discourse-cdn.com/v4/letter/r/b9bd4f/32.png) [@ralmtz](https://community.weweb.io/u/ralmtz)\
**Post date:** [November 19, 2024, 9:58pm UTC](https://community.weweb.io/t/how-can-i-break-stop-a-workflow/14596/3 "2024-11-19T21:58:23Z")

</div>

Sorry! Wrong SS. I’m trying to avoid workflows like this:

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

---

<div class="post-metadata">

**Author:** ![sam1](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/sam1/32/6724_2.png) [@sam1](https://community.weweb.io/u/sam1)\
**Post date:** [November 19, 2024, 10:11pm UTC](https://community.weweb.io/t/how-can-i-break-stop-a-workflow/14596/4 "2024-11-19T22:11:42Z")

</div>

yeah no worries in the first if just check both conditions

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