In the Properties panel, under Misc> To, enter a variable of type List<String> (in this example, "sample"). Then, in the Value field, input the value as well. (In this example, enter new List(Of String) From {"A", "B", "C"}).
For information on creating variables, refer to "How to create variables".
Next, drag and drop "Clear Collection" from System > Collection into the workflow.
In the Properties panel, click on Misc > TypeArgument and select String.
Next, in the Properties panel, under Misc > Collection, enter the List<String>variable (in this example, "sample").
To verify the number of values stored in the List<String>, add "Write Line" from System > Primitives to the workflow and configure the necessary variables.
In this example, enter: "Data count: " + sample.Count.ToString.
To retrieve the values stored in the List<String>, drag and drop "For Each (Collection)" from System > Control Flow, followed by another "Write Line", and place them in the workflow.
Note: Configure the properties for "For Each (Collection)" and "Write Line" in the same way as described in "Add to Collection".
Click "Home > Run" or press the F5 key to execute the workflow and open the Output panel.
Verify that the data count is 0 and no data content is displayed, as the collection elements have been cleared.
[Reference] Execute the workflow by commenting out the "Clear Collection" activity and then clicking "Home > Run" or pressing the F5 key.
Verify that the data count and the content of the data (A, B, C) are displayed.