PDA

View Full Version : Simple AS formulation query (f5)



ericinho
September 9th, 2003, 04:36 AM
to a frame I want to attach 2 conditions which an action has to fulfill before it can execute something.

so:

if (particularVar == Yes AND anotherniceVar == 25) {

thisfunkyMC.gotoandStop(49);

}


but obviously, this doesn't work.

How do I have to correctly formulate it so I can put two conditions side an If statement, before something will be executed???

.soulty
September 9th, 2003, 05:08 AM
Isen't AND representated as && .

.soulty
September 9th, 2003, 05:11 AM
if(this.particularVar == Yes && this.anotherniceVar == 25){
thisfunkyMC.gotoAndStop(49);
}

ericinho
September 9th, 2003, 05:39 AM
aaaaahhhh ofcourse... I had one & and it didn't work. But indeed, i needed 2 of them.

thanks mate!

.soulty
September 9th, 2003, 09:56 AM
no worries dude :)