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.
Input
Result
In place of this action, you can also use List and add variables as line items there
Get more out of Shortcuts – become a member.