mardi 6 septembre 2016

Go back to the parent if

I have this kind of code

if(a == 3) {

  if(b == 4) {
    // do somthing

  }

  else {
    // do an other thing  
  }

}

else {
  // do the same other thing  
}

I wondered, when I am in the first else, how could I go to the second elsebecause it will execute the same code

Thank you

Aucun commentaire:

Enregistrer un commentaire