Use local variables were ever ya can.
Jay M
--
You received this message because you are subscribed to the Google Groups "Tasker" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tasker+un...@googlegroups.com.
Visit this group at http://groups.google.com/group/tasker.
For more options, visit https://groups.google.com/d/optout.
If that's the case, using regex can optimize performance significantly.
For example, I use to perform manual variable searching for time codes in text messages. So I had a variable set for possible hourly time increments in a loop, and search for that variable. It was a terrible hack job, super resource consuming, and anti-tasker in most aspects.
Understanding regex more has allowed me to simplify the 5 looped actions into one simple if condition
IF %SMSRB ~R (1[012]|[1-9])([:]|[.]|)([0-5][0-9]|)([ ]|)(am|pm|noon)
which looks confusing, granted. But, in terms of efficiency this action is processed immediately, opposed to minutes of processing using variable searching. In addition, this doesn't just search for hourly matches, but any variation of time code. So regex can be much more inclusive and efficient.
Just a suggestion if it applies to you :)
You could look at task priority levels. If there's something you want to react first (even if other tasks are running), try giving it a higher priority. Consider that the priority level of shortcuts is set in the Tasker preferences and changing that preference only affects new shortcuts (i.e. you may need to recreate your shortcuts if you want to adjust their priority).