How to make two checks in one IF ?
Ie, for example, if there is a button on the page, and the value of field 1 is 100. For example, wrote a script, but it does not work ...
if (usluga != undefined) && (url.indexOf('https://and123') +1) { alert("b") } else if (n) { alert("a"); } P.S. individually everything works correctly.
+1written in the code :) - Visman-1turned into0- this is such a crappy comparison... !== -1. - Qwertiy ♦