Making Decisions with if and else

An if statement runs a block of code only when its condition is true, else gives the other path, and else if chooses between several, so your program can react to what's going on.

Updated

Cheat sheet: Making Decisions with if and else
Category
JavaScript
Level
Novice
Tags
Code Block (general), else Statement, if Statement (javascript), JavaScript