Setting multiple variables quickly with AutoTools Text

Learn how you can set multiple variables and arrays in one Tasker action with AutoTools Text

  1. joaomgcd
    Usually setting multiple variables in Tasker is a boring process.

    You need to use a Variable Set action for each variable and if you want to create arrays you need to add variables multiple times in multiple actions.

    Well, no more! With AutoTools text you can all of this in one single action. Let's check it out.

    STEP 1 - SETTING MULTIPLE VARIABLES


    • Create a task and add the AutoTools Text action
    • Set the Text field to Tesla,Model S,2016
    • Set the Variable Name field to brand,model,year
    • Accept this and go back to Tasker
    • Add a Flash action with the text
      • %brand
      • %model
      • %year
    • Run the task and check that a toast showed up with the 3 separate values. You've just created 3 variables in one action! :D


    STEP 2 - SETTING ARRAY


    • Disable the 2 previous actions
    • Add a new AutoTools Text action
    • Set the Text field to Tesla,Ferrari,Renault
    • Set the Variable Name field to brands()
    • Accept this and go back to Tasker
    • Add a Flash action with the text %brands()
    • Run the task and check that a toast showed up with the contents of the array. You've just created an array in one single action!


    STEP 3 - SETTING VARIABLES AND ARRAY IN THE SAME ACTION


    • Edit the last AutoTools Text action
    • Edit the Text field and add João,Dias at the start
    • Edit the Variable Name field and add firstname,lastname at the start
    • Accept this and go back to Tasker
    • Edit the Flash action and add this to the end
      • %firstname
      • %lastname
    • Run the task and you'll see that all variables have their correct values!
    (i) AutoTools Text will first assign any values to variables that don't have () in their name and then assign the rest of the values to the variable that does have () in its name. That's why João was assigned to %firstname, Dias was assigned to %lastname and the remaining values were put into the %brands() array :cool:

Recent Reviews

  1. RiseUp
    RiseUp
    5/5,
    This is MUCH better than using a separate Variable Set action for each variable.