...
The IF-ELSE statement is one of the most frequently used logical decision-making statements. It supports nested IF statements such as: IF-ELSE IF-ELSE IF…If (condition 1) { If (condition 2) { … } }. There is no limit on the level of nested IF. The Else statement may be omitted. The Else If statement is used for additional possible conditions following an If statement. For a given If-Else If-Else statement, only one branch will be executed. Once one condition is met, none of the other following “Else If“ or “Else“ conditions are evaluated.
...