WAIT statements are simple conditional instructions. They evaluate a condition or series of conditions, and only continue on to the next line if true. This allows you to add a delay to the progression of a robot's program.
If it is not true, the instruction will continue checking if it is true until it becomes true.
|WAIT||Variable||Math||Variable||Modifier Choice||Modifier Variable|
The condition can be any valid variable compared against any other variable, as well as just a time constant.
The WAIT instruction modifier TIMEOUT lets the instruction break out to a given LBL after a certain amount of time has occurred. This can be useful for error checking or multitasking, where the robot sitting idle is an undesired event.