# Dynamo script returns null for all nodes

**URL:** <https://forum.dynamobim.com/t/dynamo-script-returns-null-for-all-nodes/53231>\
**Category:** Revit\
**Tags:** dynamo\
**Created:** [July 22, 2020, 8:59am UTC](https://forum.dynamobim.com/t/dynamo-script-returns-null-for-all-nodes/53231 "2020-07-22T08:59:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Conor.Fraser](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@Conor.Fraser](https://forum.dynamobim.com/u/Conor.Fraser)\
**Post date:** [July 22, 2020, 8:59am UTC](https://forum.dynamobim.com/t/dynamo-script-returns-null-for-all-nodes/53231/1 "2020-07-22T08:59:55Z")

</div>

Hi,

I am completely new to Dynamo, working on my first script. I have come across an error where all my nodes return “null” after using the ScopeIf node (I understand now after looking it up that its not quite a reliable node). I have tried looking for other topics in the forum and elsewhere online but can’t find a solution for my broken script. The script worked up until the very point I introduced a ScopeIf node.

Is there a way to fix my script and also a different way I could run a similar process to ScopeIf without breaking the script?

Thanks!

---

<div class="post-metadata">

**Author:** ![Conor.Fraser](https://avatars.discourse-cdn.com/v4/letter/c/e480ec/32.png) [@Conor.Fraser](https://forum.dynamobim.com/u/Conor.Fraser)\
**Post date:** [July 22, 2020, 2:57pm UTC](https://forum.dynamobim.com/t/dynamo-script-returns-null-for-all-nodes/53231/2 "2020-07-22T14:57:32Z")

</div>

Solved broken script by restoring previous version.

Solved alternative “ScopeIf” node by making a Code Block based from this thread below:

> [@Output in the 'IF' node](https://forum.dynamobim.com/t/output-in-the-if-node/21756/3):
>
> You can use alternative option.

Thanks
