Selection: making decisions in code
Selection uses a Boolean expression that evaluates to true or false to decide which block of code runs. One-way selection (if) runs a block only when the condition is true. Two-way selection (if-else) picks between two blocks. Multiway selection (if-else-if) checks conditions in order and runs the first true branch, skipping the rest.
