Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

ProtoFlux:ForEach

From Resonite Wiki
ForEach
*
LoopStart
Collection
LoopIteration
Reverse
LoopFailed
LoopEnd
Element
Flow

The ForEach node takes in a Collection and if the node should be done in reverse or not. When called, it will iterate through the list, providing the element of that list.

It has an async version too, see: AsyncForEach

If you are working with Lists, and you want the Index of the element you are refrencing, use ForEachWithIndex instead.

Inputs

* (Call)

Calls an impulse to loop through a collection.

Collection (IList)

The collection to loop through.

Reverse (Bool)

Makes the loop go in reverse when iterating.

Outputs

LoopStart (Call)

Fires when the loop is about to start.

LoopIteration (Call)

Fires when the loop iterating through each element of the collection list.

LoopFailed (Continuation)

Fires when the loop failed.

LoopEnd (Continuation)

Fires when the loop has ended.

Element (Generic)

The element of the collection currently being iterated through.