Check for values stored in Arr[strings] in mail.subject.contains

Hello All,
Activities used so far:

  1. Outlook mail message
  2. For Loop (Normal)
  3. IF condition…

In IF condition.
if mail.subject.contains(“Data”)
{
Perform Then operation
}
else {
Nothing
}
My Problem: I need to check for 1 more word for e.g:
if mail.subject.contains(“Data”) Andalso mail.subject.contains(inputs)
here input is an Arr[String]
so, if input has 3 words like “A”, “B” and “C”… any of the 3 if present, performs Then condition…

But the if condition dose not except Arr[Strings]…
How to get solve this without using else if etc


There is a for each mail activity in this , click on “additional filter” From here you can filter mail subject

Regards

arrCheckValues = new String(){“A”,“B”…}

Condition:
arrCheckValues.Any(Function (x) mail.subject.contains(x))

We also would recommend to use toUpper to make it more defensive

Function (X) is what?
Didnt understand

So am Using the Filter in Get Outlook Mail message to save attachments from a particular mailID… So, I cant use for each mail activity
Thus, using Normal For each

There is for each mail in outlook as well ,

You can filter in a similar way
Regards,