And or &&?

Hi there, well, Im not that good at AC so I try to figure out some stuff but it rarely works… lol

Thers my problem. I made a little code and I want it to move my MC when one Variable is 0 and when a key is pressed on the keyboard.

Thers the code…

if ((Key.isDown(68)) and (PlayerSpeed, 0)) {
    _root.MyMC._x -= 3;
}

the problem is that it does not work. I tryed to put “&&” in the place of “and” but it did not work to. but if I just make it like this

if ((Key.isDown(68))) {
    _root.MyMC._x -= 3;
}

than it works. The problem is that I need that that other variable to. Its like the “and” stuff does not work but I hav no idea why… :confused:

anyone could please help me with that? ^^;