There are two types of Repeat Command - Repeat and Repeat Until. Look at the examples below.
Repeat is used to make code run a number of times. The drop down list lets you choose how many times.
Repeat 4 times Turn Output 1 on Wait for 1 second Turn Output 1 off Wait for 1 second End Repeat Repeat forever Turn Motor A on Wait for 10 second End Repeat
Repeat 4 times Turn Output 1 on Wait for 1 second Turn Output 1 off Wait for 1 second End Repeat
Repeat forever Turn Motor A on Wait for 10 second End Repeat
Repeat Until has a lot more uses than the Repeat command.
It lets code run until a certain condition is met. These conditions can be related to Inputs, Sensors, Time, Stopwatch, Counters or Variables.
Repeat :- Until Input 1 is off Repeat :- Until Sensor 1 = 5 Repeat :- Until Time > 10:57:16 am
Repeat :- Until Input 1 is off Repeat :- Until Sensor 1 = 5
Repeat :- Until Time > 10:57:16 am