Controlling program flow

Help Contents First Steps In Logo Built-in instructions Controlling program flow
run if

Controlling program flow

The power of the programming languages including Logo is based on the possibility to control the program execution flow.

If you were allowed to write programs with instructions executed one by one from the top to the bottom, then you would not be able to easily teach Logo to do really cool things.

There are three built-in instruction which you can use to control how Logo executes a program.

Controlling program flow

run if