Hi guys I have some issue with node "if"

I couldn’t get my whole list when got “true” value for some reason dynamo results only 7 element but I’d like to get whole list I mean all the 10 elements.

Maybe error of Lacing List, try change lacing of node “If” to auto or use scopeif
or you can set it with python:

if IN[0]:
    OUT = IN[1]
else:
    OUT =IN[2]

Known issue with the If node pre 2023 i think. Python is the easiest workaround in older builds.

2 Likes

thank you! Scopeif node works perfect.
I appreciate that.

1 Like

I had similar issue with if-node when I upgraded from 2021 to 2023 and got a good explanation. Maybe it can give you a hint as well if you will do the same upgrade as I did.