# Stop a branch if list is empty

**URL:** <https://forum.dynamobim.com/t/stop-a-branch-if-list-is-empty/74487>\
**Category:** Lists-Logic\
**Created:** [March 17, 2022, 3:51pm UTC](https://forum.dynamobim.com/t/stop-a-branch-if-list-is-empty/74487 "2022-03-17T15:51:12Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Nick\_Boyts](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/nick_boyts/32/76313_2.png) [@Nick\_Boyts](https://forum.dynamobim.com/u/Nick_Boyts)\
**Post date:** [March 17, 2022, 3:58pm UTC](https://forum.dynamobim.com/t/stop-a-branch-if-list-is-empty/74487/2 "2022-03-17T15:58:45Z")

</div>

Please try to search for similar topics before posting a new one. This question has been asked many times before.

> [@Run one Script out of two, on the given condition](https://forum.dynamobim.com/t/run-one-script-out-of-two-on-the-given-condition/67289):
>
> Hey, I’ve a list of concrete elements and steel elements, but i want to run different scripts on them. If my parameter “Element material name” is “Concrete”, i want it to run script A onwards. AND DO NOT RUN SCRIPT B AT ALL! . Similarly, If my parameter “Element material name” is “Steel”, i want it to run script B onwards. AND DO NOT RUN SCRIPT A AT ALL! I know there are many solutions with if statements saying if input is true, run script, if false, do not run. But its not about true or false,…

> [@Node to stop / quit running dynamo graph](https://forum.dynamobim.com/t/node-to-stop-quit-running-dynamo-graph/25892/4):
>
> I’d temper that by stating “without some effort wiring some degree of planning input control to each branch of the graph.” This node definitely works better with custom nodes than in most graphs. This is only partially true… A custom node with content grouped inside of it will not process much of anything if you properly wire a Boolean to control the run state. Most libraries are chalk full of this type of control.

---

_[View the full topic](https://forum.dynamobim.com/t/stop-a-branch-if-list-is-empty/74487)._
