Culling tree branches

How to cull specific branches of a tree according to True/False pattern?
This is my approach (works on trees with rather simple structure). Is there anything else out there?

Something like this?

1 Like

something like this?



Such a simple and brilliant solution.
Thank you both.

1 Like

NICE! Done with 2 components (if you want to keep T or F only).

Here is a Python option. (4.7 KB)

You an also use Split tree

1 Like

Late arrival! But since I was interested in the thread and in the beautiful solutions propsed here, I add one, that uses a matrix transpose (Flip in GH) and a Cull on the list, then a transpose back to the original structure. Could be useful for future generations, maybe.

1 Like