Chapter 5 if statement

In the example below, the expression is only executed if the condition that is being tested is TRUE.

if (condition) {
    expression
}

Note that when the condition is FALSE, nothing happens and the program carries on to the next step.