Use shift registers or the Feedback Node with For Loops, While Loops, or (ETS, VxWorks, Windows) Timed Loops to transfer values from one loop iteration to the next.
Use shift registers to pass one value or multiple values to the next loop iteration. Use a Feedback Node to pass the value from the previous execution or to reset the value each time the Feedback Node executes.