Demonstration of using a Recursive Loop to retain information from previous row when processing each row. The lower input table contains the 'placeholder' data that is to be remembered from the previous row. On each iteration, the data that is sent to port 1 on the recursive loop end represents the data that will ultimately appear on the loop end output.
Ports 2 and 3 of the loop end node have been added as "recursion ports" so...
Data which is sent to Port 2 on the Recursive Loop end will be included in the next iteration on Port 1 of the Recursive Loop Start
Data which is sent to Port 3 on the Recursive Loop end will be included in the next iteration on Port 2 of the Recursive Loop Start.
You will see in the final output that some information has been "lagged" from the previous row, as if a lag column node were present.
@takbb Brian Bates 27 September 2024
Ports 2 and 3 of the loop end node have been added as "recursion ports" so...
Data which is sent to Port 2 on the Recursive Loop end will be included in the next iteration on Port 1 of the Recursive Loop Start
Data which is sent to Port 3 on the Recursive Loop end will be included in the next iteration on Port 2 of the Recursive Loop Start.
You will see in the final output that some information has been "lagged" from the previous row, as if a lag column node were present.
@takbb Brian Bates 27 September 2024