Enclosing conditional expressions in parentheses (no longer relevant)

Volmark

Member
It's very tricky to work with conditional statements. For example the routines for enclosing conditional expressions in parentheses (condition_1 AND (condition_2 OR condition_3) are not clear.
Any help …
 

dsnz

Well-known member
in your macro press 'if ...' -> configure -> press + to add new condition
select AND/OR/XOR/NOT (in Macrodroid specific category), then the operator you like
for each operator you can add a constraint (condition in other languages, but called constraint in macrodroid) or another operator (another AND/OR/XOR/NOT, and this way by nesting you achieve the same effect as enclosing in parentheses)
needs some practice initially but it's really easy in the end

for your example you add AND first
then under AND, add condition_1 and below it the OR operator
finally under OR you add condition_2 and condition_3
 

Volmark

Member
No longer relevant. After experimenting with the constraints and MD UI understood how it works.
I continue to believe that the way of composing logical conditional expressions of MD requires additional efforts to understand the routines.
 
Top