Skip to content

For Loop Open (Deprecated)

Opens a counter-based loop and exposes a flow-control handle plus counters and initial state values for iteration. This node does not iterate by itself; it prepares the loop and must be paired with a corresponding For Loop Close node to perform repeated execution.
Preview

Usage

Use this node to start a fixed-count loop. Connect its flow_control output to a For Loop Close node. Set the remaining input to the number of iterations you want. Optionally pass initial values (value1..value4) that will be threaded through each iteration by connecting them consistently between the Open and Close nodes. This node is deprecated; prefer the newer Loop Open/Loop Close nodes for enhanced functionality.

Inputs

FieldRequiredTypeDescriptionExample
remainingTrueINTNumber of iterations to perform. Acts as the loop counter seed.5
initial_value1FalseANYOptional initial data value to carry through the loop. Available to downstream nodes and preserved via the Close node.any value
initial_value2FalseANYOptional secondary initial data value to carry through the loop.any value
initial_value3FalseANYOptional third initial data value to carry through the loop.any value
initial_value4FalseANYOptional fourth initial data value to carry through the loop.any value

Outputs

FieldTypeDescriptionExample
flow_controlFLOW_CONTROLFlow-control handle that must be connected to a For Loop Close node to drive iteration.Flow control token
remainingINTThe initialized remaining-iterations counter value.5
value1ANYPass-through of initial_value1 to seed the loop state.any value
value2ANYPass-through of initial_value2 to seed the loop state.any value
value3ANYPass-through of initial_value3 to seed the loop state.any value
value4ANYPass-through of initial_value4 to seed the loop state.any value

Important Notes

  • This node is deprecated. Prefer using Loop Open and Loop Close for new designs.
  • Must be paired with For Loop Close; on its own this node does not execute iterations.
  • The hidden initial_value0 input, if supplied, overrides the remaining counter initialization.
  • Up to four auxiliary data values (value1..value4) can be threaded through the loop across iterations.
  • remaining must be a non-negative integer; extremely large values may impact performance.

Troubleshooting

  • If the loop does not run, ensure the flow_control output is connected to a For Loop Close node.
  • If iterations do not decrement as expected, confirm that For Loop Close is properly connected and that remaining was initialized correctly.
  • If auxiliary values are not preserved, ensure the same value1..value4 outputs from Open feed the corresponding initial_value inputs on Close.
  • If the loop stops immediately, check whether hidden initial_value0 is set to 0 or a falsy value by upstream logic.