Get value in multi array with condition

hi,
I want check subject mail , if subject contains in array then value = true else if not value will be = false . but i have problems when i use condition
Please help to fix that , thank you :frowning:

My array :

Hi,

If you want to check if subject (let’s say strSubject) contains either one of string array (say arrStr), it would be the following.

arrStr.Select(function(x) strSubject.Contains(x)).Contains(true)

If you want to check if either one of string array contains subject, it would be the following.

arrStr.Select(function(x) x.Contains(strSubject)).Contains(true)

Hope it might help you.

Regards,