Replace one item with two items

Hi! Thanks in advance :slight_smile:

I’m trying to receive certain items in a tree and adding them to a new tree by using Tree item.
It works fine as long as there is only one item to search for. When there are multiple items to search for, the structure won’t work the way i want it to work…

I think the image will explain the most.

Anyone any idea why? Thx Johh

Please attach your data, your .gh file.

here it is
treeItemSearch.gh (9.5 KB)

i was trying to use treesplit, but it doesn’t seem to do what i’m looking for

treeItemSearch.gh (15.5 KB)

I have the feeling you could have solved this differently, but by using better the data before the “Concatenate”…

Yeah you were right haha. Could do nearly the same just before concatenate… a litte bit cleaner now, thanks!