Write down about the if-else statement

The if-else statement : The general form of the if....else statement is as follows,

if (test expression){
 true-block statements;
 False-block statements;

Here, if the test expression is true, then the true-block statements will be executed, otherwise the false-block statements will be executed. In either case, either true block or false block statements will be executed, not both. The general form can be shown by the following flowchart. 

Author: Tanmay Chakrabarty

A former CSE student, working as a SSE with 5+ years of experience in the field of Web Application development in PHP+MySQL platform with strong skills in JS, JQuery(+UI), HTML, CSS, Bootstrap.



Contact Us