Replace items in a data tree?

How to replace the non-first and non-last items in the data tree B with 1, if the value of the corresponding path in the data tree A is “True”?

2.gh (15.8 KB)

2.gh (10.4 KB)

Thanks Martin
But it doesn’t work if I change the data tree a little bit


2.gh (21.4 KB)

Sorry, forgot about the True / False …

2 (1).gh (12.7 KB)

1 Like