Hi all,
Can someone please explain the difference between using:
two conditions separated by AND
Logic A → AND → Logic B → THEN action
and
two conditions combined with an ALL
Logic A }
… … … … } → ALL → THEN action
Logic B }
I am using the second option in an advanced flow and it doesn’t fire when both Logic A and Logic B are true
Jo_San
October 8, 2022, 9:07pm
2
If the all does not go through than either one of the cards before it is not true, or they are never activated (the path to such a card isn’t there, or at least not at the same time).
But, without showing the flow, it would become a guessing party I’m afraid.
Dijker
October 8, 2022, 9:24pm
3
Please share a screenshot of your flow.
Yes, when both variables are “Yes”, the action following the ALL block does not fire. The flow is ENABLED
Is there a difference between the two constructs in my original post?
I had imagined that when both the conditions were met, DOORBELL 2 would be activated. It isn’t
Jo_San
October 8, 2022, 9:35pm
6
You are using and cards as trigger cards, that does not work
1 Like
Ah, I think I see. So I would need to change it to this?
1 Like
Or would this work as the more elegant solution?
This still will not work, you need a trigger as start of any line.
The image above, where you connect the If and And cards, that one looks good.
Jo_San
October 9, 2022, 7:14am
11
This won’t, as the AND cards do not get triggered.
Jo_San
October 9, 2022, 7:15am
12
If you want to use the ALL card, you could connect the trigger to both AND cards.
OK all, got it. Thanks so much for your help. It seems either the daisy-chained ANDs or this ALL block would work equally. Please just let me know if I’;ve got that wrong. This has ben a great education, thank you.
1 Like
Why AND and ALL operators have no FALSE output like AND cards? It would add flexibility and simplicity in some sitautions.
1 Like
JohanP
December 28, 2024, 10:19pm
15
Because you need to use the FALSE of the card ypu connect ANY or AND to.
Besides, how would you use a FALSE on ANY if any-but-one of the cards are allowed to be false?
1 Like
First, I meant ANY and ALL instead of AND and ALL, what I corrected in my original post.
For example, I wold resolve the following sitaution: If ALL windows are closed, THEN turn on the air condition ELSE notify me about open window.
Or with inverted logic: If ANY window is open, THEN notify me, ELSE turn on the air condition.
The same with alarm sistem, energy managment sistem and so on.
Regards,
Brane
Then you add an ANY card in the flow.
If al the windows are closed, or “yes” then the blue lines go to the ALL.
If a window is not closed, so no “yes”, the yellow line goes to ANY. And from ANY you send a notification.
JohanP
December 29, 2024, 6:19pm
18
Nice, so now I look like a fool replying to something thats now not in your post ?
Add an [edit] next time please (and what you edited) if it’s not just a typo.
JohanP
December 29, 2024, 6:24pm
19
Brane_Brodnik:
I wold resolve the following sitaution: If ALL windows are closed, THEN turn on the air condition ELSE notify me about open window.
Or with inverted logic: If ANY window is open, THEN notify me, ELSE turn on the air condition.
Use 2 cards, if ALL windows closed turn on air
If ANY windows open notify me…
Connect your WHEN/AND card(s) with both…
[Edit] the ALL to the true and the ANY to the false ofcourse…
JohanP:
Use 2 cards, if ALL windows closed turn on air
If ANY windows open notify me…
Connect your WHEN/AND card(s) with both…
[Edit] the ALL to the true and the ANY to the false ofcourse…
Yes, I know I can use two cards, even can I cope without any of them, but it’s about structuring and simplicity, which is what ANY and ALL are used for.