Comparing two different lists for the same values

Dear forum,

I have a question related to list logic and I hope that someone here can help me.

I have 2 lists containing Revit elements,I want to compare them and create a third list containing all the elements that are present in list 1 and 2. The main problem is that the lists are with different lengths and that the elements are randomly sorted in the both lists. Does anybody have some advice for me? Thanks a lot.

1 Like

Have you tried ‘SetIntersection’ node? Can you give a screenshot of your current dynamo definition?


yes, this is exactly what I was looking for. I didn;t know that there was a node for this. Thank you very much :slight_smile:

What if the list 2 (smaller list) contains some repeating items and I want all the items from list 1 which are common in both?