forward_iteration_output=True so each iteration receives the previous iteration’s output. Read that value with step_input.get_last_step_content().
This example increments a numeric value by 10 each iteration, stopping when it reaches 50 or more.
loop_iterative_accumulation.py