List.ContainsItem

I am trying to compare two lists with different lengths. I want to find which items that exist in both lists. I use List.ContainsItem but it does not work. Any ideas of what I am doing wrong? I also tried to do a Python script but the result is the same.

The Lunchbox node does not output an integer but an actual ElementId.
Try using the Element.Id node like this instead of the lunchbox node output:

1 Like

Try the BuiltIn node SetIntersection

Okay thank you. I did like that and then it worked :slight_smile: great!!

Hi, there is also a very useful package called If Equal Return Index, does exactly what is says if that might be useful.