How does a program choose what to do?
Some programs cannot follow one straight path. They must check information and choose between different actions.
Selection is a programming construct where a condition is checked and the result decides which code runs.