Check if item on a "For Each" activity exist in another array of string

I have to Arrays of string: DocTypesArray and DocTypesArray24
I want to perform a “For Each” activity on “DocTypesArray” only for the elements that are not existing in “DocTypesArray24” but I don’t find the way to formule the “If” sentence. I’ve tried this options without any success:

@Airun
Here an Except helps
arr1.Except(arr2).toArray

will return all arr1 items that are not also present in arr2
grafik

https://www.tutorialsteacher.com/linq/linq-set-operators-except

2 Likes

It’s working perfectly!!! Thanks a lot!!! :smiley:

perfect, once you have done with integration into your code and testing mark the solving post as solution to get closed the topic. Thanks

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.