Two array comparison

Hi,

I would like to know how to check if an element from an array1 is also in array2?

Hope you can help me with this. Thank you!

Hi,

Can you try the following condition?

arr1.Any(Function(x) arr2.Contains(x))

Regards,

Hi, Yoichi.

The condition didn’t work. It doesn’t prompt any error, it just doesn’t work.

Hi @bbhyuns

Try the below code it will return the result in boolean

array1.Intersect(array2).Any()