The if statement specifies that a statement be executed only if a certain condition is true. If it false, then either no statement is to be executed or the statement following the symbol else is to be executed.