Clear Multiple Variables
For those of you who know, this probably falls in the 'duh!' category. For those of you who don't, this is for you. Tasker has a 'Multiple Variables Set' action, and whenever I had a need for it, I was always annoyed by the lack of a 'Multiple Variables Clear' action. But it is possible to clear multiple variables in one action, by taking advantage of the fact that with the 'Multiple Variables Set' action, unlike the regular 'Variable Set' action, it is possible to omit values for variables. Clearing multiple variables could look like this (note that the Variables Names Splitter is a newline):
Task: Clear Multiple Variables
A1: Multiple Variables Set [
Names: %var_1=
%var_2=
%var_3=
Variable Names Splitter:
Values Splitter: = ]
I know, not really groundbreaking, but if having to use multiple 'Variable Clear' actions annoys you like it annoys me... you're welcome 🙂
Edit: this also means you can combine setting and clearing (multiple) variables in the same action.