This term refers to an optional part of an if statement. When the condition in the if statement evaluates to false, the code block associated with else executes instead.
Related terms
else if: An extension of the else statement that allows additional conditions to be checked.
Nested if-else: Placing an if-else statement inside another if or else block.
Ternary Operator: A shorthand way of writing an if-else statement in a single line.