foreachvector

SpecialNodes foreachvector

input ports:
Name Type Description Optional

input

vector<?0>

vector to be iterated. must be non-empty.

no

output ports:
Name Type Description Optional

output

?0

an element of the vector (in index order)

no

final

bool

true if output is the last element of the vector

yes

foreachvector reads its input port without removing the value it reads. The value it reads is a vector, which must be non-empty. It is an error if an empty vector is read. For every element of the input vector except the last, that element is output from the output port, and false is output on the final port. The last element of the set is then output from the output port, true is output on the final port, and the input set is removed from the input port. It is recommended that you read the Iteration section of the Dataflow in Coreograph document in addition to the information presented here.