Compare two lists


I need help to fix this issue. I’m trying to get a boolen list comparing to uniqual list, but what I get it’s not a proper result. FInd image below:

What I’m lookinf for it’s a list such as this one:

[false, true, true, true, true, true, true, true, true, true, false, false, false,… ]

Why cannot I get it correctly?

Thanks in advance

Not sure what you are after, but I think you are asking ‘does List A contains any of the items in List B?”

If so, an == node with cross product lacing, followed by a List.Contains node with true as the item and longest lacing should do the trick.

What I’m looking for it’s compare list 1 with list 2 get a list showing wich values in 2 are in 1.

== node with cross product lacing.
List.Contains to look for a ‘true’ with longest lacing.

Hi !

I have a solution i think.

Say me if it’s good for you :slight_smile:

I don’t get the requeried list :frowning:

Swap your X and Y inputs in the == node, or use a List.Transpose node immediately after it.

List.Contains should be all you need.

1 Like

The solution I proposed:


Thank you, this solved my problema.

Which post ?
Click solved on it :wink:

1 Like