Boolean filter applied to nested list

Hello, I’m sure there is a posting that explains what I am trying to do but I can’t find one. It’s a pretty simple question and I’m sure the experienced members of this community will have no trouble knowing what I should do, and thanks in advance.

given a list of booleans, to be used as a mask, e.g.
0 true
1 false
2 true
3 true

and a target list to filter:
0
.0 item 0.0
.1 item 0.1
.2 item 0.2
1
.0 item 1.0
.1 item 1.1
.2 item 1.2
2
.0 item 2.0
.1 item 2.1
.2 item 2.2
3
.0 item 3.0
.1 item 3.1
.2 item 3.2

with a desired result:
0
.0 item 0.0
.1 item 0.1
.2 item 0.2
1
.0 item 2.0
.1 item 2.1
.2 item 2.2
2
.0 item 3.0
.1 item 3.1
.2 item 3.2
i.e sublist #1 is removed. I’ve tried varous combinations of lacing and list levels selections in the filter by boolean mask node but the sublists are reduced to a single value.
thanks again!

Try auto lacing with @L3 on the List, @L2 on the booleans.

1 Like

Right, ok that works, thank you!

1 Like