Skip to main content
All CollectionsAutomationAutomation Rules
Automation Rules AND/OR Strategy
Automation Rules AND/OR Strategy

What happens when there is an AND/ OR condition build in the automation rules.

Lily Mineur avatar
Written by Lily Mineur
Updated over 2 months ago

What happens when there is an AND condition build in the automation rules?

For example, you want to increase daily budget by 5% on the days of the month that most people get salary, and it must be a working day:

  1. Increase daily budget in adjustment of 5% (with a maximum of 10%)

  2. Condition one: Days in the month 22-28

  3. Condition two: Days in the week Mon-Fri

  4. The conditions are linked with an AND statement

Scenario one: it is Friday the 26th:

  1. Condition one: Days in the month 22-28 is true because the 26th is between 22-28

  2. Condition two: Days in the week Mon-Fri is true because the Friday is between Mon-Fri

  3. So the entire automation rule is true because condition one and condition two are true. The budget will be increased by 5%.

Scenario two: it is Saturday the 27th:

  1. Condition one: Days in the month 22-28 is true because the 26th is between 22-28

  2. Condition two: Days in the week Mon-Fri is false because the Saturday is not between Mon-Fri

  3. So the entire automation rule is false because condition one is true, but condition two is false. The budget will not be increased by 5%.

Scenario three: it is Monday the 31st:

  1. Condition one: Days in the month 22-28 is false because the 31st is not between 22-28

  2. Condition two: Days in the week Mon-Fri is true because Monday is between Mon-Fri

  3. So the entire automation rule is false because even though condition two is true, condition one is false. The budget will not be increased by 5%.

What happens when there is an OR condition build in the automation rules?

For example, you want to increase the daily budget by 5% on the days of the month that most people get salary or if it is a weekend day:

  1. Increase daily budget in adjustment of 5% (with a maximum of 10%)

  2. Condition one: Days in the month 22-28

  3. Condition two: Days in the week Sat-Sun

  4. The conditions are linked with an OR statement

Scenario one: it is Friday the 26th:

  1. Condition one: Days in the month 22-28 is true because the 26th is between 22-28

  2. Condition two: Days in the week Sat-Sun is false because Friday is not between Sat-Sun

  3. So the entire automation rule is true because condition one is true (it will ignore condition two). The budget will be increased by 5%.

Scenario two: it is Saturday the 27th:

  1. Condition one: Days in the month 22-28 is true because the 26th is between 22-28

  2. Condition two: Days in the week Sat-Sun is true because Saturday is between Sat-Sun

  3. So the entire automation rule is true because both conditions are true. The budget will be increased by 5%.

Scenario three: it is Monday the 31st:

  1. Condition one: Days in the month 22-28 is false because the 31st is not between 22-28

  2. Condition two: Days in the week Sat-Sun is false because Monday is between Sat-Sun

  3. So the entire automation rule is false because both conditions are false. The budget will not be increased by 5%.

Scenario four: it is Saturday the 2nd:

  1. Condition one: Days in the month 22-28 is false because the 2nd is not between 22-28

  2. Condition two: Days in the week Sat-Sun is true because Saturday is between Sat-Sun

  3. So the entire automation rule is true because condition two is true. The budget will be increased by 5%.

Did this answer your question?