If & If Else Statements
What are they? How do they work?
The if else Statement
- The if else statement comes after the initial if statement, and specifies which block(s) of code to be tested in the event that the initial if statement returns a value of FALSE.
- The if else Statement is most commonly used to test multiple conditions, rather than a true or false scenario.
- Contrary to else statements, if else statements contain a condition.