I have a little problem that i cannot handler. I have 3-4 if statement and one if in another, but i want to go outside(continue).
Here is my code: jsfiddle
var a = "2";
var b = "A";
if(a == "1") {
alert("1");
} else if (a == "2") {
if(b == "X") {
alert("GOAL!");
}
} else if(a == "3") {
alert("3");
} else {
alert("NOTHING!");
}
Aucun commentaire:
Enregistrer un commentaire