We use collections to store rows of data. We then use loops to go through each row one by one and process it. Here's an example of a loop:
A loop always starts by looking at a specific collection; let's say, for example, the Items to Purchase collection. At the start of the loop, we read the first row, which, in our example, is the low carb granola cereal. The robot proceeds to process the low carb granola cereal by running Stage 1, followed by Stage 2. When the robot completes its processing of Stage 2, it will check whether there are more rows in the collection that has not been processed. If there are, it will automatically loop back to Stage 1. Otherwise, it will proceed to Stage 3.