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:
Increase daily budget in adjustment of 5% (with a maximum of 10%)
Condition one: Days in the month 22-28
Condition two: Days in the week Mon-Fri
The conditions are linked with an AND statement
Scenario one: it is Friday the 26th:
Condition one: Days in the month 22-28 is true because the 26th is between 22-28
Condition two: Days in the week Mon-Fri is true because the Friday is between Mon-Fri
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:
Condition one: Days in the month 22-28 is true because the 26th is between 22-28
Condition two: Days in the week Mon-Fri is false because the Saturday is not between Mon-Fri
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:
Condition one: Days in the month 22-28 is false because the 31st is not between 22-28
Condition two: Days in the week Mon-Fri is true because Monday is between Mon-Fri
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:
Increase daily budget in adjustment of 5% (with a maximum of 10%)
Condition one: Days in the month 22-28
Condition two: Days in the week Sat-Sun
The conditions are linked with an OR statement
Scenario one: it is Friday the 26th:
Condition one: Days in the month 22-28 is true because the 26th is between 22-28
Condition two: Days in the week Sat-Sun is false because Friday is not between Sat-Sun
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:
Condition one: Days in the month 22-28 is true because the 26th is between 22-28
Condition two: Days in the week Sat-Sun is true because Saturday is between Sat-Sun
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:
Condition one: Days in the month 22-28 is false because the 31st is not between 22-28
Condition two: Days in the week Sat-Sun is false because Monday is between Sat-Sun
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:
Condition one: Days in the month 22-28 is false because the 2nd is not between 22-28
Condition two: Days in the week Sat-Sun is true because Saturday is between Sat-Sun
So the entire automation rule is true because condition two is true. The budget will be increased by 5%.