vendredi 27 novembre 2015

How can i make multiple "if(){}" and if all of them are false, do else{}?

I am an Android developer working on a sign up.

Here's what I want:

if(blah){
}
if(blah2){
}
if(blah3){
}
if(blah4){
}
else{
}

And else only is activated if ALL of the statements are false. For example, blah,blah2,blah3,blah4 should ALL be false in order for the else to work. I am new to android java. I've searched a lot and couldn't find my question. Pardon me if this was hidden

Aucun commentaire:

Enregistrer un commentaire