Iteration, in the context of computer programming, is a process wherein a set of instructions or structures are repeated in a sequence a specified number of times or until a condition is met. When the first set of instructions is executed again, it is called an iteration. For example if you were to write a script for your going for a swim it would consist of an if/else statement. (If the weather is hot go for a swim, else don't).
As seen in Figure 2 and 3 without the use of a loop or iterative statement the code becomes extremely large and unmanageable. It is important to note that when creating script that uses iterations there needs to be a variable or condition that determines if the statement is true or false. The starting value for this variable is determined prior to the repeat function starting.
Take note that a variable is given a name by the programmer and has no effect on the code, it is rather a reminder to the programmer for what that variable or control is used for. The value given to the variable is what effects the algorithm.
Figure 4 demonstrates a variable was created titled 'wing' and that its value was set to 0. This is important because once the script has completed the cycle once the variable is added to by 1. So when the code is repeated the if/else control runs the iterative statement and determines that the variable has changed therefore the function of the code will select the else statement.