Just using a normal if-statement to check if something is equal or higher/lower than the actual result.
Only getting the else alert..
if(a[22].begin >= b && a[22].end <= b){
alert("u WON");
}
if(a[6].begin >= b && a[6].end <= b){
alert("u WON");
}
if(a[13].begin >= b && a[13].end <= b){
alert("u WON");
}
else {
alert("Better luck next time");
}
Aucun commentaire:
Enregistrer un commentaire