In theory mailMessage.Subject.Contains(“Cash”).Contains(“Receipts”) without the extra parenthesis should also work, however in practice I have found some object expectations not properly accounting for multiple methods for which the added parenthesis help.
what I did is this , I have an array of keywords which for example contains keywords = {“Cash”, “Receipts”} and then I use assign isContains = keywords.Any(function(x)mailMessage.Subject.Contains(x))