What does selection mean?

Choosing which instructions to run depending on whether a condition is true or false: an if statement. One of the three basic programming constructs.

In a lesson

Every program so far did the same thing every time. A robot that only does that is a toy. From this lesson on, your programs look at the world and choose. Choosing which lines run is called selection.

Learn it

Used in

and 5 more lessons.

Do the lesson in the simulator

All glossary terms