Dynamo script returns null for all nodes


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?


Solved broken script by restoring previous version.

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