Executes a block of code only if a certain condition is
The opposite of
if – executes a block of code only if a certain condition is not met.
This would be the equivalent of doing the following:
elsif / else
Adds more conditions within an
Creates a switch statement to compare a variable with different values.
case initialises the switch statement, and
when compares its values.