Chapter 6. program flow
Program flow is about controlling the order in which your programming blocks are run. Typically, the blocks run from left to right, but you can control the flow of the program by making blocks wait, repeat, or choose an action based on some condition. The three main blocks used for program flow are the Wait, Switch, and Loop blocks.
You’ve already seen how the Wait block works. In this chapter, I’ll cover the Switch and Loop blocks in depth. The Loop Interrupt block is also used to control Loop blocks, so I’ll explain that as well.
the switch block
The Switch block (shown in