The
if
else
statement is like the if
statement, except
that a second embedded statement follows else
:
if (Boolean expression) if-true statement else if-false statement
The if-false statement is executed if the Boolean expression evaluates to
false
.