If/Else

This page has an if/else statement that checks whether any of three conditions is true:

  1. Is the variable "i" equal to the number 10? If it is, we output the message "i is equal to 10".
  2. Otherwise, is the variable "i" equal to the number 9? If it is, we output the message "i is equal to 9".
  3. 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: