Skip to main content
Version: Next

For Each

Execute a provided function once for each list item.

Description

Executes the provided iterator function once for each item of the provided list.

The output control flow is triggered when all items have been processed.

This functions similarly to Javascript's <a href="https://medium.com/@JeffLombardJr/understanding-foreach-map-filter-and-find-in-javascript-f91da93b9f2c" target="_blank">forEach()</a>

Inputs

  • Control Flow (Control Flow)
  • list (List): The original list to iterate on.
  • iterator (Iterator): The function to execute on every item.
    Inputs:
    - start (Control Flow): Triggered when the item is to be processed.
    - item (Object): The current item of the list.
    - rank (Number): The rank of the current item.
    - list (List): The full list being iterated.

    Outputs:
    - end (Control Flow): Triggered when the processing is completed.

Outputs

  • Control Flow (Control Flow)