branching

Making a decision between one of two or more actions depending on sets of conditions and the data provided. For example, in testing whether a light works, the following algorithm uses branching:

http://www.australiancurriculum.edu.au/File/d34a0919-6764-4248-a4b4-a3ee00e6d3fa

Diagram illustrating branching