Coming from Grasshopper one of the things I use a lot in codes is Filters and Stream Gates and Culls using if statements or sliders to either switch between input/outputs or stop code from running beyond a point if a cull is set to False. This workflow does not require a boolean for every item in the list but just one value.
As you can see this logic somewhat works if the boolean has not been made into a list yet but as soon as this logic comes from something that is in a list it reverts to list structure levels which have no option to change on If node. Or anywhere for that matter, I have found. Also when switching to another list with fewer items it or in this case one Null it just makes it for as many that are in the true list which feels like a wrong and a Bug.
Is it possible to have an option to not only flatten a list but to remove any list data if the item is just a single item so it looks like and works like the True from the number slider code block?
ScopeIf node fails to output false but I don’t know why.
Note, I have not searched all the packages to see if it’s been done I am interested in if there Is a native component or code block to output the required logic. As the fewer packages I am using in my code the easier it is to give to others.
Here’s the code forgot to post it earlier.
LIST FILTER.dyn (34.2 KB)