Create a new DataTree

Hi, I have a tree with some branches… I want to create a new tree in which if the braches are consecutive in range 1 (es. {0;0;0;1};{0;0;0;2}) then keep only the one with more items inside (the one with higher value of N).
Someone can help me?

Test_DataTree.gh (224.0 KB)


AndreaMaffi.gh (216.9 KB)

1 Like

Thank you… It works great