Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Multiple conditions on a do while statement - logic |
From: | Andrew Le Sage |
Date: | Sun, 24 Sep 2000 19:34:31 +0100 |
problem
Date: Sun, 24 Sep 2000 01:05:19 +0100
Organization: Electra
MIME-Version: 1.0
Content-Type: text/plain;charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Sender: ownerchinwag [dot] com
Precedence: bulk
Reply-To: flasherchinwag [dot] com
X-Website: http://www.chinwag.com
----- Original Message -----=20
From: Paul Steven=20
To: flasherchinwag [dot] com=20
Sent: Saturday, September 23, 2000 6:51 PM
Subject: FLASH: Multiple conditions on a do while statement - logic =
problem
Hi all
I am having real problems sorting out the logic on a do while =
statement
Basically I have an array that stores 3 directions
i.e List_Of_Directions=3D["Right","Left","Down"]
Now I want to set up a loop to call a function using each of these
directions. The function will return either true or false indicating =
whether
a move in that direction is allowed.
This is what I have tried
=
/////////////////////////////////////////////////////////////////////////=
///
//////////////////
var Valid_Direction=3DFalse
var Index=3D0;
do {
Requested_Direction=3DPossible_Directions[Index];
Valid_Direction=3D_root.Is_Move_Allowed (Current_Row, Current_Column,
Requested_Direction);
Index++;
} while ((Index<3) or (Valid_Direction=3D=3DTrue));
=
/////////////////////////////////////////////////////////////////////////=
///
/////////////////
Now it seems to be only using the first condition to test whether to =
leave
the loop. Can anyone point out what I am doing wrong?
Thanks
Paul
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpchinwag [dot] com
Replies
FLASH: Multiple conditions on a do while, Paul Steven
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]