• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

%err Processing

This might save you some grief in the future ...

When there is no error, there is no Flash from this task ...
devA
A1: Variable Clear [ Name:%err Pattern Matching:Off ]
A2: Send Intent [ Action:ACTION_NOTIFICATION_LISTENER_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity Continue Task After Error:On ]
A3: Flash [ Text:%err Long:On ] If [ %err Set ]
A4: Flash [ Text:OK Long:On ] If [ %err !Set ]

When there is no error, there is an OK flash from this task ...
devA
A1: Variable Clear [ Name:%err Pattern Matching:Off ]
A2: Send Intent [ Action:ACTION_NOTIFICATION_LISTENER_SETTINGS Cat:None Mime Type: Data: Extra: Extra: Extra: Package: Class: Target:Activity Continue Task After Error:On ]
A3: Flash [ Text:%err Long:On ] If [ %err Set ]
A4: Wait [ MS:1 Seconds:0 Minutes:0 Hours:0 Days:0 ]
A5: Flash [ Text:OK Long:On ] If [ %err !Set ]

I have reported it.

... Thom
 
Yes that is one millisecond. When debugging a task I was baffled.

The reason I posted it is that it is obscure and I assume it is a bug. It was reported to the Tasker author.

... Thom
 
I am motivated to always learn something new each day.

In this case the built-in variable %err has a unique behavior. It contains the result of the preceding action.

There is no reason to clear it ... it is always set by an action and invaluable to the next action if Continue On Error is set.

The ambiguity it testing with Set and !Set was reported.

... Thom
 
Back
Top Bottom