🖥️ActiveHome Pro > Smart Macros

ELSE CONFUSION

(1/2) > >>

JimC:
I’m confused (not that, that is unusual for
me). How does “ELSE” work?
I have two conditional macros triggered by
the same motion sensor. Does the second only
execute if the first does not or do they
both trigger sequentially ?????

donald mcmow:
The First macro will execute only if all of
the conditions are true otherwise the
second macro will execute and only if the
conditions in that macro are met. If there
are no conditions in that macro then the
macro will execute. I don't know how many
levels deep you can go but the more macros
the more complicated your conditionals will
seem to be and the greater the chances of
you not understanding why something is not
working when you think it should be. Keep
your thoughts straight as to what you want
to happen and when and you can create the
automated home that you are looking for.

JimC:
Thanks for the reply Donald.

Am I correct in thinking that if the first
macro executes  the second will not . The
second macro is only looked at if the
conditions for the first are not met?????


Thanks,

Jim

X10 Pro:
Jim: That's right -- the second, and any
subsequent macros, doesn't run (and any
conditions it has aren't tested) if the first
macro runs. At most, only one macro runs when
the given trigger is received.

steven r:
"...I don't know how many levels deep you
can go but the more macros the more
complicated your conditionals will seem to
be and the greater the chances of you not
understanding why something is not working
when you think it should be...."

You can say that again!

I'm just now getting to the point where I
can predict what happens with 1 else! I
haven't tried adding more yet.

BTW X10.. Is there a limit to the number of
levels deep can you can go with the elses?
How many macros can run concurrently? If a
macro is executing and you trigger it
again, does a 2nd one start, does the macro
restart, or is the 2nd trigger ignored?
Inquiring minds want to know. Thanks.

Navigation

[0] Message Index

[#] Next page

Go to full version