While creating workflows, many a times we would need multiple conditions to trigger an action.


For eg: Condition 1: If user has referred to 100 friends.

 Condition 2: If 75 people get converted from referral.


 Action: Send an email to sales@mycompany.com


These two conditions can be combined in two ways. One with and AND operator and second using OR operator. In case of AND operator, only when both the conditions are true, the action will be executed. In case of OR operator, the action will be executed even if a single condition is true.


Here is an example of how to create workflows using these two conditions.


Sample 1: AND operator


 


The action of sending an email to the sales team here will be executed only when both the conditions are true i.e number of referrals is at least 100 AND number of conversions is at least 75.



Sample 1: OR operator


 




The action of sending an email to the sales team here will be executed only when both the conditions are true i.e number of referrals is at least 100 OR number of conversions is at least 75.