The "if" Statement
The "if" statement is used to execute (or ignore) a set of statements after testing a condition.
The if statement evaluates a condition . If the given condition is true, the statement (or a set of statements) following the "if statement" is executed. If the given condition is false, the statement(or a set of statement) following the " if statement" condition is ignored and the control transfers to the next statement.