If..else

Name

 * if..else

Description
if..else checks whether the expression inside the parenthesis is true and if it is executes the "true statement(s)". If the expression is not true then the "false statements" are executed.
 * Since:

Syntax
if(expression){ // true statement(s) } else { // false statements(s) }

or

if(expression) // true statement; else //false statement;


 * (expression): a boolean statement that evaluates to true or false


 * true statement(s): the statement or statements that are executed when the expression is true


 * false statement(s): the statement of statements that are executed when the expression is false