2 or more triggers and conditional triggers

Post your feature requets for new triggers, conditions, actions and other improvements.

Moderator: Martin

Locked
Frankiep
Posts: 8
Joined: 14 Apr 2013 00:29

2 or more triggers and conditional triggers

Post by Frankiep » 27 Apr 2013 21:36

ability to have 2 or more triggers at the same time and conditional triggers. I would like to have a flow that would start an action when a trigger has not being set (conditional trigger). If for example I am waiting for trigger based on locale and the location has not being met, then to go and complete a different action. I am aware that on many cases you can do this by setting a second flow or a bit complex logic, but if this way you can create a flow a lot more simpler and still get the same result.

syndromtr
Posts: 31
Joined: 01 Feb 2013 13:28

Re: 2 or more triggers and conditional triggers

Post by syndromtr » 28 Apr 2013 07:20

i agree on this.. when i start to create complex flows, it's required that 2 or more triggers should be included, but, in the same flow.
so, when there are more than one trigger, a special condition needs to be there (AND-OR) first.

also, there might be a variable for all triggers, for ex. a flow is created with (Trigger 1 OR Trigger 2)
when one of them is triggered with OR, we need to get which one was triggered? with that variable..

User avatar
Martin
Posts: 4468
Joined: 09 Nov 2012 14:23

Re: 2 or more triggers and conditional triggers

Post by Martin » 28 Apr 2013 08:19

Triggers in Automagic are event-handlers that immediately execute a flow, it is therefore not possible to AND two triggers since the event does not occur at the same time. Additional conditions can be checked by adding one or multiple conditions right after the trigger. You can also add multiple triggers to the trigger box if you want to execute a flow on different events (like an OR).

For example:
-trigger "SMS Receive"
-condition "Time Range: 6:00 - 22:00"
-->true: -action "Play Sound"
-->false: -action "Vibrate"

The name of the trigger that executed the flow is available in local variable trigger.

Regards,
Martin

Frankiep
Posts: 8
Joined: 14 Apr 2013 00:29

Re: 2 or more triggers and conditional triggers

Post by Frankiep » 30 Apr 2013 12:56

Martin wrote:Triggers in Automagic are event-handlers that immediately execute a flow, it is therefore not possible to AND two triggers since the event does not occur at the same time. Additional conditions can be checked by adding one or multiple conditions right after the trigger. You can also add multiple triggers to the trigger box if you want to execute a flow on different events (like an OR).

For example:
-trigger "SMS Receive"
-condition "Time Range: 6:00 - 22:00"
-->true: -action "Play Sound"
-->false: -action "Vibrate"

The name of the trigger that executed the flow is available in local variable trigger.

Regards,
Martin
Thanks for the reply. What about the mute/ignore trigger during flow action? Or a way to condition a trigger only after a variable/condition is present?
BTW congrats, just saw the app featured on Lifehacker :-)

Locked