The if statement runs code only if the boolean it's relying on is true.

It's like saying, if something is true, then do this.