How to use OR?

82 views
Skip to first unread message

Alex

unread,
Jun 11, 2025, 11:28:23 PM6/11/25
to Automate for Android
I have a flow that mutes all calls during the night and I want it to unmute it either if location changed or time is 8:00am. The way I achieved it is using two forks - one for location and one for time but I was wondering if there is a more efficient way to do this but I couldn't find a block that is used for OR(||) condition.

phonetus tus

unread,
Jun 12, 2025, 2:26:26 AM6/12/25
to Automate for Android
i think you need to use "variable give & take" blocks, variable take (with fiber stop) in main fiber, variable give in two child fibe (you can use 2 variable give block or just 1). i have a flow with multiple conditions also.

Henrik "The Developer" Lindqvist

unread,
Jun 12, 2025, 10:20:52 AM6/12/25
to Automate for Android
That is it way. But if you wish to let both "triggers", i.e. location or time, perform the same actions, then those can be placed in an Subroutine then called from each fork.
An more advanced way is to let each fork send a message (Variables give) to a third fork (Variables take) when its time to perform the actions.
Reply all
Reply to author
Forward
0 new messages