Tests if a condition is true, and if so, runs the actions inside. Otherwise, the actions under “Otherwise” are run.

Score
Type
InterActivity
Expertise
5/5
Type
InterActivity
Expertise

Action Information

Parameters

If [Input: Select a Home Accessory/Shortcut Input/Clipboard/Current Date] [Condition: is/is not/is exactly/is not exactly/has any value/does not have any value/contains/does not contain/begins with/ends with/is after/is before/is today/is between/is in the next/is in the last]

Input

Anything

Result

(Anything) The input

Comments

Updated with iOS 13 to have different options to choose from depending on the type of input.

Place your Input in the action, then check the conditions to filter by that are available.

Works with Home automations.

Shortcuts Using This

Show upcoming birthdays
Check for contacts whose birthdays are in the next two weeks and displays their name and the date.
Open MindNode
Opens MindNode – if run from iPad, opens in Slide Over.
Open MindNode for Mac
Opens the MindNode app for Mac directly or remotely via SSH.
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.

Works Well With

?
Count
Counts the number of items, characters, words, sentences, or lines passed as input.

Note (from Apple, for real)
This is just like the Count in Sesame Street, but instead of a vampire, it’s a Shortcuts action.
☯️
Switch to Light/Dark Mode
Switches to Light/Dark mode on the specified Apple TV.
?
Set Low Power Mode
Sets the device’s Low Power Mode to on or off.
?
Set Playback Destination
Sets playback destination to a device.

Device
The device to set playback destination to.

Details

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