Please enable JavaScript to use CodeHS

CodeHS Glossary


Selection General

Using a condition to determine which part of an algorithm is executed. If statements and if / else statements allow us to use selection in our algorithms. We can execute one set of commands *if* a certain condition is true, and a different set of commands otherwise.