Warmuptill
Active Member
The way macro conditions are evaluated is always from top to bottom within each macro.Thank you. How about if I need to add a condition with an AND? So if it's in those specified time ranges AND it's on a certain scene. I'm not sure about the precedence, but applying what I know by AND usually taking precedence over OR, this would mean I'd need an AND for each time range, is that correct? And thus, so I don't need to create multiple ANDs, i just group all the time ranges in one macro like you said, then AND in another macro?
So if you have macro with conditions...
IF A
OR B
AND C
OR NOT D
It will be evaluated as (((A OR B) AND C) OR NOT D).
In case of the "Macro" condition type, the value of whatever the conditions of the specified macro resulted in the last time the macro was checked is simply reused (and not re-evaluted in place).
To give an example, let's call the example above "Macro 1" and reuse in this setup:
IF X
AND Y
AND NOT "conditions of 'Macro 1' are true"
OR Z
This would effectively result in:
(((X AND Y) AND NOT (((A OR B) AND C) OR NOT D)) OR Z)
I hope this is somewhat clear.
If not please let me know :)