[Solved] Javascript multiple OR in statement [duplicate]
[ad_1] What you’re actually looking for is a logical AND, which would ensure that every condition is met: if (bedroomNums != “0_0” && bedroomNums != “0_1” && bedroomNums != “0_2”) { // `bedroomNums` is not one of “0_0”, “0_1”, “0_2” } If one of these checks returns FALSE (that is, bedroomNums is set to one … Read more