Set Variable

=

Sets the value of the specified variable to the input of this action.

Score
Type
InterActivity
Expertise
5/5
Type
InterActivity
Expertise

Action Information

Parameters

Set variable [Variable] to [Value]

Input

Anything

Result

(Anything) The input

Comments

Adds variable name to variable picker bar/tray

Shortcuts Using This

Open personal YouTube playlists
Presents a menu of YouTube playlists sorted into your “Personal” group, letting you choose one and open it in the app.
Open work YouTube playlists
If you don’t want the Grab YouTube playlist ID shortcut installed, delete the Run Shortcut action above and the URL action below.

However, the shortcut won’t work with links from videos inside playlists anymore.
Open my YouTube playlists
Pulls from a dictionary of YouTube playlists and lets you pick from subgroups to open in the app.

Works Well With

🗾
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.
🔂
Repeat with Each
Takes a list of items as input, and runs the contained actions once for each item in the list.
If
Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.
🤳
Get Device Details
Gets information about the current device.

Details

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


Get more out of Shortcuts – become a member.