u/Exciting-Compote5680

▲ 1 r/tasker

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.

reddit.com
u/Exciting-Compote5680 — 36 minutes ago
▲ 3 r/tasker

Can anybody tell me how to send text (like a url) to the android sharesheet (the app/activity list where you can select the share target that you typically get when you tap a share button)? I tried the AutoShare action, but that seems to have it's own list of apps, not the one the OS provides. I'm not trying to send to any particular app, I specifically want to be able to choose the target manually. But maybe I'm doing something wrong.

SOLUTION: https://www.reddit.com/r/tasker/comments/1sz4dlq/comment/oj09sns/

reddit.com
u/Exciting-Compote5680 — 14 days ago