For End
End point of a for-each loop over elements.
What it does
For End closes a for-each loop started at For Start. It takes the current value on every pass, and once the loop finishes the results from every pass are gathered according to Mode: into a list, joined into a string, merged into one collection, or written back onto the source collection's attributes.
More than one value can be wired in. Each wire collects independently and gets its own matching output, all using the same accumulation Mode, so one loop can hand back a set of positions alongside a matching set of colours.
When to use it
Looping over points, shapes, or list entries and gathering what each pass produced.
Every pass's result stacked into a single list: Collect.
A string built up pass by pass, such as an L-system, a label, or a path description: Concat.
Per-pass collections merged back into one, each row stamped with its index and position in the loop: Merge Collection.
Attribute changes made on entities inside the loop written back onto the original collection: Merge Entities.
| Parameter | Type | Default |
|---|---|---|
mode | String | "Collect" |
value | Any | — |
opacity | Number | 1 |
Gotchas
For End does nothing unless paired with a For Start driving the same loop. On its own it has nothing to collect.
Merge Entities writes attribute changes back into the source collection. For a brand-new collection built from scratch each pass, use Merge Collection or Collect.
Worked example
Add a For Start feeding a For End, with your loop body wired between them.
Wire the value to keep from each pass into For End's Value input.
Set Mode to Collect to gather every pass's value into a single list.
To get one merged collection back instead, with each row stamped with its position in the loop, switch Mode to Merge Collection.