can anyone tell me what's wrong with this if statement? If I use either of the two main conditions on their own the statement works fine but when I add that middle && statement it stops working. I've searched online and can't see what's wrong Please, help! :) ps. I can even change that middle && to a || statement and it works as well. I'm so confused...
if ((containerId.id == "LineOne" && dropLoc == "dropLocation1.1") && (containerId.id == "LineTwo" && dropLoc == "dropLocation2.2"))
{
alert("finished");
cdpause();
}
Aucun commentaire:
Enregistrer un commentaire