If Statements
Based on a boolean opperator, then executes a certain branch of code
1 2 3 4 5 |
|
Extra conditions can also be chained on failure of proceeding cases
1 2 3 4 5 6 7 |
|
The elif
statement must always proceed either an if
statement or another elif
statement.
The else
statement may only follow an if
statement.
However neither elif
, nor else
is required for a valid if
statement.
Last update:
November 13, 2022