Here is my code: https://plnkr.co/edit/HFyKq2JZipwAAST0iNAt?p=preview Why is it not outputting the result of the if statement to the tag with ID "WA" Here's the IF Statement separate from the code linked above:
if (demlean.WA <= 5 && demlean.WA >= -5) {
if (demlean.WA > 0) {
var lWA = "Tossup, Tilt D";
} else if (demlean.WA < 0) {
var lWA = "Tossup, Tilt R";
} else {
var lWA = "Absolute Tossup";
}
} else if (demlean.WA > 5) {
if (demlean.WA <= 10) {
var lWA = "Lean D";
} else if (demlean.WA <= 17) {
var lWA = "Likely D";
} else {
var lWA = "Safe D";
}
} else {
if (demlean.WA >= -10) {
var lWA = "Lean R";
} else if (demlean.WA >= -17) {
var lWA = "Likely R";
} else {
var lWA = "Safe R";
}
Aucun commentaire:
Enregistrer un commentaire