Skip to main content

How to Set OR Conditions in Email Trigger

As of Oct 27, 2023

Yoom Customer Service avatar
Written by Yoom Customer Service
Updated this week

Q:

Can I set an "OR" condition for an email trigger so that it activates if the subject contains either A or B?

A: Yes, you can set this up using the following steps!

Step 1. Search Location

Select the part of the email you want to search (e.g., Subject, Body).

Step 2. Search Conditions

Choose "Match with regular expressions."

Step 3. String

Enter A | B where A and B are the conditions you want to match. The vertical bar | between them functions as the "OR".

For example, if you want to trigger the email when the subject contains either "Invoice" or "Receipt", you would use Invoice|Receipt as the string.

📚 Related Guides

Search Keywords

email, trigger, email trigger, search, or condition, regular expressions, vertical bar

Did this answer your question?