mardi 4 juin 2019

How can I jump from if block to else block without using goto?

I am writing a code in which some process is done in if block. But if result of process is not aa expected, I want to execute else block.

if(condition1)
{
// Some processing
   if(another condition)
        //Do some task;
   else 
        //Execute else of outer block;
}
else
{
}

Aucun commentaire:

Enregistrer un commentaire