Clear List
Clear List
Section titled “Clear List”Type: list-clear · Package: Collections Activities v1.0.0
Empties a list: removes all its elements, leaving it ready for reuse. Useful for restarting an accumulator between rounds of a process.
How it works
Section titled “How it works”Remove all elements from list. The variable still exists, but now points to an empty list.
Required parameters
Section titled “Required parameters”| Parameter | Editor | Description |
|---|---|---|
list | expression | The list to be emptied. |
Example
Section titled “Example”For Each items = = lotes itemVariable = lote └─ activities: Clear List list = = acumulado // reinicia el acumulador en cada lote ... procesar el lote acumulando en 'acumulado' ...Related activities
Section titled “Related activities”- Create List — create a new list.
- Remove from List — remove a single item.