else

Example: else

Provides an alternate statement for an if condition. In an if statement, if the expression is true, then if's statement is executed. If an else clause is given and if the expression is false, then the else's statement is executed.

if( expression ) statement1;
else statement2;