Pick list with string in sublist dynamo

Hi there guys,

I was hoping someone could help me out. Before I proceed I must make mention that I have searched the thread for answers already, unfortunately I have not come across anything that could help.

Ok, what I am after I feel would be quite simple to those who know Dynamo back to front however I am still learning.

Here goes.

I have a list of circuits that I generate a sublist of all elements that are on each circuit.

So a list (circuits) > sublist (Elements) shown below.

I am wanting to only capture the circuits that contain a certain element. e.g RCD

I am thinking a boolean however I am not sure how to do this in sublists then return the main listed items.

The output needed is a list of the remaining circuits. I will sort out the rest.

Thanks in advance

Brock

List.Contains true @L2 on your current list of booleans, then use that result as your BoolMask for the list of circuits.

Hi Hamish,

Thankyou for your response. Do you mind providing an example, even if its a sketch.

Cheers

Brock

The top is just an extension of yours above. The bottom simplifies it a bit.

2 Likes

Perfect thankyou Hamish. Yep now that I look at it it was easy. Legend

1 Like