Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] if all conditions true...
From: Helen Triolo
Date: Wed, 24 Jan 2001 11:52:20 -0000

Hi Jason. Should be

if (a==1 && b==2 && c==3 ...) {
do your thing
}

(Strangely, this "&&" is called a "short circuit AND" in the Flash 5
dictionary, even though it's counterparts, ! and ||, are called logical
NOT and logical OR as I would expect).

Regards,
Helen
-----------------------------------------------------
i-Technica � http://i-technica.com � 301.424.6037
developer resources: http://i-technica.com/whitestuff

Jason_Schubringataal [dot] org wrote:
>
> Hi. Simple question for you. This should not be as complex as I am making it!
>
> What I need to do is have a script detect whether ALL of 10 conditions are true
> at the same time (if a=1 and b=2 and c=3....).
>
> What am I missing? If/Else won't work. What I need is an if/And statement! I
> could make a bunch of frames, each with a sort of "if this one is true, go to
> the next frame" but that seems silly. I have also tried "while" and some other
> options, but no luck. I know this should be easy, which makes it even more
> annoying. :-)
>
> Any suggestions?
>
> Thanks!
>
> J



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]