Divide list in sublist depending on how many items each branch has

divide list in sublist depending on n items in each branch.gh (28.6 KB)

hello!

i have this 30 polylines with 4/5/6 segments each. with list lenght i identified which one have 4,5,6 segments, and now i wanna separate them in different lists so i know hoy many polylines i have with 4/5/6.

thank you!!


divide list in sublist depending on n items in each branch-MP.gh (28.7 KB)

2 Likes

Thanks for sharing. That’s what I wanted.