I have multiple case statements, simplified below. I am in the if block but I need to go to the else block.
if (case) {
if (case2) {
return true;
} else {
//go to the main else block
}
} else {
//if case fails OR case2 fails
}
How can this be accomplished? Is there any way other than using else-if?
Aucun commentaire:
Enregistrer un commentaire