if / else if / else
Also written: if, else
A statement that runs a block only when its condition is true. else if and else add alternatives, and only the first true block runs.
Also written: if, else
A statement that runs a block only when its condition is true. else if and else add alternatives, and only the first true block runs.