I have the following code:
if (insurance != ("amica" || "travelers" || "national general" || "infinity" || "cincinatti")) {
amount = "$200";
} else {
amount = "$300";
}
I'm trying to have my web page display you get $200 if it's not one of the five company above.
Unfortunately, I can't seem to get it to work. I've written it several different ways I started if (insurance === "amica || insurance === "travelers || ...
but nothing seems to work.
What am I doing wrong?
Aucun commentaire:
Enregistrer un commentaire