Here's the condition
the first group evaluates: toLower(TriggerBody()?['from']) = the above example email addresses
the second group evaluates: toLower(TriggerBody()?['subject']) does not contain the above example words
What's happening? If Group1 evaluates true, Group2 is ignored, when it shouldn't be. I can even change the does not contain to contains and the result is still the same.
I've even gotten rid of all the blocks and used the advanced expression:
and(or(equals(toLower(triggerBody()?['from']),'1@emailaddress.com'),equals(toLower(triggerBody()?['from']),'2@emailaddress.com')),or(not(contains(toLower(triggerBody()?['subject']),'test')),not(contains(toLower(triggerBody()?['subject']),'alert'))))
Same result.
Tried swapping group positions. Same result.
Desired result examples:
From: 1@emailaddress.com
Subject: this is a test
This should evaluate false.