Skip to main content
Corvus Connection

For Each

Iteration
Control
flow.foreachIterates each element of a collection, exposing the item and its index to the body.Walks a collection element by element.

Inputs

Name
Kind
Type
Flags
in
Exec
exec
multiplexed
source
Data
any
None
  • Name
    in
    Kind
    Exec
    Type
    exec
    Flags
    multiplexed
  • Name
    source
    Kind
    Data
    Type
    any
    Flags
    None

Outputs

Name
Kind
Type
Flags
body
Exec
exec
None
item
Data
any
multiplexed
index
Data
System.Int32
multiplexed
completed
Exec
exec
None
  • Name
    body
    Kind
    Exec
    Type
    exec
    Flags
    None
  • Name
    item
    Kind
    Data
    Type
    any
    Flags
    multiplexed
  • Name
    index
    Kind
    Data
    Type
    System.Int32
    Flags
    multiplexed
  • Name
    completed
    Kind
    Exec
    Type
    exec
    Flags
    None

Lowers to C#

foreach (var item in source) { … }