Mach3Maelstrom
New member
I want to use a geofence to detect when I'm entering my parking garage so that I can pop up a reminder to tell my wife which floor I parked the car on. But I know geofences uses a lot more battery power, so I'm looking to only check the geofence during the 1-2 hour window I typically drive home.
But as I was writing the script, I wanted to double-check how Triggers & Constraints are treated in MacroDroid so I don't accidentally create an always-on geofence.
For example, say I set the Constraint for a specific Time of Day and the trigger for when I enter a Geofence -- how does the script treat this interaction?
(A) While-If Statement
or (B) If-While Statement
I suspect the answer is (A), but I couldn't find any documentation confirming.
But as I was writing the script, I wanted to double-check how Triggers & Constraints are treated in MacroDroid so I don't accidentally create an always-on geofence.
For example, say I set the Constraint for a specific Time of Day and the trigger for when I enter a Geofence -- how does the script treat this interaction?
(A) While-If Statement
Code:
while (Time of Day is between X & Y) {
if (Geofence Trigger) {
[execute code]
}
}
or (B) If-While Statement
Code:
if (Geofence Trigger) {
while (Time of Day is between X & Y) {
[execute code]
}
}
I suspect the answer is (A), but I couldn't find any documentation confirming.