Trigger specific action becomes invalid if another trigger is added to the macro

Abalsam

Active member
I was playing around with incoming even triggers such as sms received and incoming call and the extra magic text options they make available. I noticed though that when I added a non incoming sms trigger to the macro (note I didn't remove the incoming sms trigger) the forward sms action became invalid and I could no longer save the macro. This was true even if I put a constraint on the action to ensure it only runs when the sms trigger was fired.

Is this by design?

Thanks
 

Pseudocyclic

Well-known member
My guess is the trigger is always activated and receives all relevant data, but then does not run the actions if the constraint returns true. I suppose it has to be that way, because the constraint could be dependant on the incoming data.
 

Abalsam

Active member
My guess is the trigger is always activated and receives all relevant data, but then does not run the actions if the constraint returns true. I suppose it has to be that way, because the constraint could be dependant on the incoming data.
I would argue that there should be a way to avoid this but I think I have a work around.
 

Pseudocyclic

Well-known member
For incoming text messages, I have a 'background' macro that updates a comprehensive set of global variables. It doesn't do anything else. I can then access those variables at any time from any other macro. I have similar 'background' messages for other triggers. Maybe a strategy like that might work for you.
 

Abalsam

Active member
That would work as well. :) what I ended up doing is putting both triggers in a single macro and then setting specific variables within if trigger blocks....

I go that way because I look to do everything I can to minimize the number of macros I define.
 

Dm114

Well-known member
For incoming text messages, I have a 'background' macro that updates a comprehensive set of global variables. It doesn't do anything else. I can then access those variables at any time from any other macro. I have similar 'background' messages for other triggers. Maybe a strategy like that might work for you.
So do I, mainly for BT and WiFi connection...
 
Top