Add to Variable

action-icon-add-to-variable.webp

Appends this action's input to the specified variable, creating the variable if it does not exist. This allows you to make a variable hold multiple items.

Score
Type
InterActivity
Expertise
4/5
Type
InterActivity
Expertise

Action Information

Parameters

Add [Value] to [Variable]

Input

Anything

Result

(Anything) The update contents of the variable

Details

Type
Interactivity
Expertise Needed
Matthew's Score
4/5
Category
Date Added
11/12/2014
Identifier
is.workflow.actions.appendvariable

Comments

In place of this action, you can also use List and add variables as line items there

Works Well With

shortcuts-action-icon-get-details-of-locations.webp
Get Details of Locations
Allows you to extract information from a location passed as input, including the latitude, longitude, altitude, street, city, state, ZIP code, country, phone number, URL, and name of a location.
shortcuts-action-icon-repeat-with-each.webp
Repeat with Each
Takes a list of items as input, and runs the contained actions once for each item in the list.
shortcuts-action-icon-get-dictionary-from-input.webp
Get Dictionary from Input
Makes a dictionary from the text passed as input. JSON (like {“foo”: “bar”}), key-value pairs (like foo=bar&baz=biz), and XML-based plist are supported.
shortcuts-action-icon-get-dictionary-value.webp
Get Dictionary Value
Gets the value for the specified key in the dictionary passed into the action.
shortcuts-action-icon-dictionary.webp
Dictionary
Passes the specified list of key-value pairs to the next action as a dictionary.
shortcuts-action-icon-set-dictionary-value.webp
Set Dictionary Value
Sets a value in the dictionary passed into the action.
shortcuts-action-icon-combine-text.webp
Combine Text
Joins text together, inserting the separator between each join.
shortcuts-action-icon-show-result.webp
Show Result
Shows the specified text in Siri or in an alert.

Shortcuts Using This

No results found.