The if statement is a simple branching statement and aids in decision making. It is used to Control the flow of execution of a program. The if statement is a two-way branching statement, which is used in conjunction with a test expression. The general usage of an if statement is if (test expression). The test expression would be evaluated first and the control is transferred depending upon the value of the text expression.


