If/Else
This page has an if/else statement that checks whether any of three conditions is true:
- Is the variable "i" equal to the number 10? If it is, we output the message "i is equal to 10".
- Otherwise, is the variable "i" equal to the number 9? If it is, we output the message "i is equal to 9".
- Otherwise, we output the message "i is not equal to 9 or 10".
We can change the value of the variable "i" in the code to see how the message changes: