• 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
 
  • Like
Reactions: sumotori
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
 
Upvote 0

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones