jeudi 30 juillet 2015

if else statement with two condition

This maybe trivial but I have this code

if(condition 1 & condition 2){
// apply some code
}
else{
// apply other code}

my question is when else is applied. is it applied when both conditions are false or its enough for one condition to be false

Aucun commentaire:

Enregistrer un commentaire