×

Truncate List

iOS 15 +

Notes

Truncates the input list to the given limit by removing items from the end. Even though the description says this action accepts input of type "Files", it accepts any type.

Syntax

truncateList(list: <#Variable Array#>, limit: <#Integer#>)

Example

truncateList(list: [ShortcutInput, CurrentDate, Clipboard], limit: 1)