Path mapper is not keeping empty branches

Hello everyone!
I have a question about this definition I’ve uploaded. The thing is that I have a list of 200 branches with {A;B} and I want to clean the tree to {A}, but when I do this, the path mapper component removes every empty branch which I need to keep. I have tried using the clean tree component but it works just like the path mapper. Would someone please help me? Do you know a component that might work to solve this issue? Thank you very much.
I’ve attatched the gh definition and the image.
Q20202702.gh (71.2 KB)

1 Like

Thanks a lot! you’re a genius :star_struck:

1 Like