Keep Going

More often than not, programs have to run more then once. This section focuses on programs that run over and over again.

In order to achieve a program that runs continuously, your program will need to include a while loop. A while loop is a structure that runs everything inside it over and over again until a condition is met. In order to stop a while loop you must input the appropriate Boolean value into the conditional terminal. If the conditional terminal does not receive an input, your program will not run.  Boolean values are TRUE and FALSE. In this section, we will use Boolean constants, a constant that outputs Boolean values, to  satisfy the conditional terminal. While Loops also have iteration terminals, which can be used to tell you what the loop iteration is.

While Loop

While Loop

In this section we will also be using Debug mode. This mode allows your computer to communicate to the robot while it is working. In order to complete the exercise, you will also be introduced to numeric controls. A numeric control outputs numeric values. Since a numeric control is not a constant, it can output different valued while a program is running.

Left Arrow Right Arrow