4.7 Detecting multiple features with branches¶
Multiple distinct if statements¶
- Each if statement is independent, and thus more than one branch can execute, in contrast to the multi-branch if-else arrangement.
Nested if-else statements¶
- A branch's statements can include any valid statements, including another if-else statement, which are known as nested if-else statements.