Loop
Last updated
Last updated
A Loop node executes repetitive tasks that depend on previous iteration results until exit conditions are met or the maximum loop count is reached.
Loop
Each iteration depends on previous results
Recursive operations, optimization problems
Iteration
Iterations execute independently
Batch processing, parallel data handling
Loop Termination Condition
Expression that determines when to exit the loop
x < 50
, error_rate < 0.01
Maximum Loop Count
Upper limit on iterations to prevent infinite loops
10, 100, 1000
Goal: Generate random numbers (1-100) until a value below 50 appears.
Steps:
Use node
to generate a random number between 1-100.
Use if
to evaluate the number:
If < 50: Output done
and terminate loop.
If ≥ 50: Continue loop and generate another random number.
Set the exit criterion to random_number < 50.
Loop ends when a number below 50 appears.
Future releases will include: