Compare values using boolean logic
Compare against a set of values using boolean logic in automations scripting.
-
start: set: message: subject: Receipt for your recent order to: customer@example.com from: shop@example.com return: pass@bool: {{ not ( message.to starts with 'noreply@' or message.from starts with 'spammer@' ) and ( 'receipt' in message.subject|lower or 'kassenzettel' in message.subject|lower ) }}
-
__return: pass: true
In this case we use the |lower
filter since in
is case-sensitive.