For Loop

For Loops are used to run functions numerous times by iterating over a list of options. This list can have different values. Functions are performed on the different values of that list.


Select Items to Loop through: Specify which items to loop.

Define Functions: The statements that make up your functions.

For our loop we will use an array: [ 1, 2, 3, 4, 5].

Each element of the array will be assigned the variable item_1 for our functions. We have made a conditional function that says if item_1 = 3 then generate a random number and put that number in a new variable called random. Here is our conditional function:

There are other special commands that can be used with loops which will be seen in the upcoming pages. Loop: Break Loop: Continue Loop: Save Entry Loop: Remove Entry​