Warmuptill
Active Member
Th conditions are evaluated in order from top to bottom so your example would evaluate to:Hello, thank you for the amazing plugin! I am wondering, how are the If Conditions evaluated in macros when there are multiple? Is there an order of precedence, like AND gets evaluated before OR? It is very confusing without a way to group together conditions like you can in a programming language with parenthesis.
For example, I believe i tried something like below but it did not work at all as I would hope:
If scene = intro
AND File contents matches ABC
OR File contents matches DEF
OR File contents matches GHI
((((scene == intro) && File matches ABC) || File matches DEF) || File matches GHI)
Note that you can also nest other macros' conditions inside a macro to simplify your setups.
For example you can set one macro to just check the file content:
File Content Macro: (((File matches ABC) || File matches DEF) || File matches GHI)
And then use this condition in another macro:
Example Macro: ((scene == intro) && "File Content Macro" evaluates to true)
I assume something similar to this is probably what you tried to achieve.
Let me know if you have questions! :)