OK i think now you all has a great knowledge of IF-ELSE so let us start our next topic :

NESTING OF IF-ELSE

While we use IF-ELSE inside IF-ELSE this kind of condition’s called Nesting IF-ELSE. let us understand with help of some example.

if (condition)
{
    statements....;
    if(condition)
    {

    }
}
else
{
    statements....;
    if(condition)
    {

    }
}

or

if (condition)
{
    statements....;
}
else if (condition)
{
    statements....;
}
else if (condition)
{

}
else
{

}

NOTE :–

If you enable to understand them than no need to worry you can easely learn with help of some quection.

in above examples you can see we use IF inside IF. this is called Nesting Of IF-ELSE. Now It’s time for some Examples.