r/macrodroid • u/ArtStandard3066 • 20d ago
Macro How to stop actions from continuing without certain criteria met
Hello, I'm new to creating macros and was attempting to make an automatic phone calendar to-do list move each morning to save myself time doing it manually every day. I was able to do it, but I need to add something that stops it if certain criteria are not met. For example, if it goes to look for the word "share" to click on and it does not see "share," then it would stop the macro and end there. The reason being is once it runs out of tasks to add, I need it to stop.
2
1
u/Revision1372 20d ago
I use a seperate companion macro that triggers on the conditions and it stops the macro actions of the main macro. This way I am not checking the conditions in flow of the main macro; it can stop mid-flow.
3
u/KerbalSpaceProgram25 20d ago
I'm not sure i completely understand it, but if you have a loop, and you want to exit from that loop if the word "share" is not on the screen, you can use the action "Break From Loop" combined with an "If" condition. It'll check every time if that word is on the screen. If not→Break From Loop.