flow
(required): The entry point for the loop. Connect this to the node that should run before the loop begins.startIndex
(optional): The integer value at which the loop should begin. Default is 0.endIndex
(optional): The integer value at which the loop should end (inclusive). Default is 0.loopBody
: Connect this to the first node inside the loop. These nodes will execute once for each value in the range.index
: Outputs the current integer value in the range on each iteration.completed
: The exit point for the loop. Connect this to the node that should run after the loop finishes.flow
input.startIndex
to 1 and the endIndex
to 10.loopBody
output to it.index
output to one of the Add node’s inputs.completed
output to any nodes that should run after the loop finishes.startIndex
and endIndex
.endIndex
is reachable from your startIndex
based on the logic inside your loop.completed
output can cause your spell to hang after the loop finishes. Always make sure your loop has an exit path.