I have a condition as below to check the variables Qmart and linearstatus.
Though they have the values as required, my if statement is always going to the else condition. Is there some mistake I'm making for checking these values?
var Qmart = "A2";
var linearstatus = "linear"
if (Qmart === ("E2" || "A2" || "B2" || "D2") && linearstatus == "linear") {
} else {
alert("it is an else condition");
}
findorindexOf.if (Qmart === "E2" || Qmart === "A2" ... ) { ... }