Add to List
Add to List
Section titled “Add to List”Type: list-add · Package: Collections Activities v1.0.0
Adds an item to the end of a list. It is the activity to accumulate data: saving each result while you go through something.
How it works
Section titled “How it works”Add item to the list list. The list must exist (create it first with Create List).
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
list | expression | The list to add to. |
item | expression | The element to add. |
Example
Section titled “Example”Create List outputVariable = pendientesFor Each items = = facturas itemVariable = factura └─ activities: If condition = = str(factura["Estado"]) == "Pendiente" └─ then: Add to List list = = pendientes item = = factura["Numero"]Related activities
Section titled “Related activities”- Create List — create the list.
- Get List Item — read an item.
- List Count — contar elementos.