For Loop Start(forLoopStart)
For Loop Start is the opening control node of a for-loop block in the EasyUse/Logic/For Loop category.
for Loop Start
For Loop Start is the opening control node of a for-loop block in the EasyUse/Logic/For Loop category. It takes one required integer input, total, which defines how many times the loop should run. It is meant to be used together with the matching "For Loop End" node: the start node supplies the iteration count, and the end node closes the loop.
Inputs
total
A required INT input (widget).
- Default:
1 - Minimum:
1 - Maximum:
100000 - Step:
1
total sets the number of iterations for the loop. The minimum value of 1 ensures the loop body always runs at least once. The maximum value of 100000 provides a safety cap against accidental oversized loops. The step of 1 means the loop count advances by one whole integer.
Outputs
This node declares no outputs in the current source. It acts as a control/definition node rather than a data-passing node, so it does not provide an iteration index or loop value to downstream nodes.
Usage Notes
- Pair
For Loop Startwith the correspondingFor Loop Endnode in the same category. - To make the loop count dynamic, compute the
totalvalue in an upstream node and connect it to this input. - Because the minimum
totalis1, this node cannot represent a zero-iteration loop; use an external condition outside the loop for that case.
Comments
Sign in with GitHub to join the discussion.