An if runs a block of code only when something is true. The thing in the brackets has to be a question with a true-or-false answer, and <, >, == and != are how you ask one.
An else is what happens when the answer was false. An else if asks a second question, but only when the first answer was false.