PDA

View Full Version : How do you use AND?


Twister
12-03-2002, 08:39 PM
I feel like an idiot but searching for the answer isn't going well. Heres what i want to do.

if (number != 5) and (name != suzi) and (color != bule) {
gotoAndPlay(4);
}

Except i don't know how to use AND in flash. Do you use the word, or & or &&?

Please help me out here.

Thanks
Twister

tg
12-03-2002, 09:31 PM
use && for 'and'
use || for 'or'

tost
12-03-2002, 09:34 PM
AND ;) do this:

if (number != 5 && name != suzi && color != bule) {
gotoAndPlay(4);
}

Twister
12-03-2002, 09:48 PM
Thanks.

Twister