Posted By
Message
\/\/olf Creative GeniusRegistered 06/08/2005
Points 76
9th November, 2007 at 01:28:09 -
Hey, is there anyway to run a loop infinitely until a condition is met? I was looking for a Do while extension but i couldnt find it.
www.OldMansTale.net
Sign the Petition! Go go Go!!
\/\/olf Creative GeniusRegistered 06/08/2005
Points 76
9th November, 2007 at 01:35:11 -
okay, ill explain further. i have 36 values. i want to check if one of them is zero. and i want to get the result as the smallest one. e.g, if both value 4 and value 20 are 0, i want to get the result as 4. Now, I know this is possible if i just run a loop checking values with 0 in the reverse order. i.e, from 36 to 0 instead of 0 to 36, in which case, ill get the smallest value as my result. but is there anyway to do a Do-While loop?
www.OldMansTale.net
Sign the Petition! Go go Go!!
Pixelthief Dedicated klik scientistRegistered 02/01/2002
Points 3419
9th November, 2007 at 01:39:03 -
You can adapt a for loop with an extremely high index to break when a command is met. That tends to be the ticket.
Gridquest V2.00 is out!!
http://www.create-games.com/download.asp?id=7456
\/\/olf Creative GeniusRegistered 06/08/2005
Points 76
9th November, 2007 at 01:56:46 -
oh, n also, for the IIF object (immediate if), wt is the syntax for equals to? == or just a single =?
www.OldMansTale.net
Sign the Petition! Go go Go!!
Tim I'm on here way too muchRegistered 25/08/2006
Points 132
9th November, 2007 at 02:16:37 -
Should be a single, but I haven't a clue.
http://www.SilverNova.co.uk
Klikmaster Master of all things KlikRegistered 08/07/2002
Points 2599
9th November, 2007 at 03:30:47 -
It's = for everything else in MMF, so I can't imagine that it is different
n/a
\/\/olf Creative GeniusRegistered 06/08/2005
Points 76
9th November, 2007 at 16:05:52 -
weird, it doesnt seem to work for me. the single = i mean.
also, it turns out there is a while loop object.
haha, ive got it working finally Edited by the Author.
www.OldMansTale.net
Sign the Petition! Go go Go!!
Tim I'm on here way too muchRegistered 25/08/2006
Points 132
10th November, 2007 at 12:26:45 -
http://www.SilverNova.co.uk