Forum : What is the syntax of The if...elseif....else Statement ?
Brief description  about Online courses   join in Online courses
View Abhijit  Paul 's Profile

What is the syntax of The if...elseif....else Statement ?

if...elseif...statement..........
Asked by Abhijit Paul | Mar 17, 2010 |  Reply now
Replies (1)
View teacher siliconindia 's Profile
HI Abhijit,
Use the if....elseif...else statement to select one of several blocks of code to be executed.

if (condition TRUE)
{
code to be executed if condition is true;

}elseif (condition TRUE)
{
code to be executed if condition is true;
}else
{
code to be executed if condition is false;
}

Mar 17, 2010