The Daily Click ::. Forums ::. Klik Coding Help ::. While loop?
 

Post Reply  Post Oekaki 
 

Posted By Message

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
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.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

\/\/olf

Creative Genius

Registered
  06/08/2005
Points
  76

VIP Member
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?

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

Pixelthief

Dedicated klik scientist

Registered
  02/01/2002
Points
  3419

Game of the Week WinnerWeekly Picture Me This Winner!You've Been Circy'd!VIP MemberI like Aliens!Evil klikerThe SpinsterI donated an open source project
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 Genius

Registered
  06/08/2005
Points
  76

VIP Member
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 =?

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
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 Klik

Registered
  08/07/2002
Points
  2599

Has Donated, Thank You!You've Been Circy'd!VIP MemberPS3 Owner
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 Genius

Registered
  06/08/2005
Points
  76

VIP Member
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

Image Edited by the Author.

 
Image

www.OldMansTale.net
Sign the Petition! Go go Go!!

Tim

I'm on here way too much

Registered
  25/08/2006
Points
  132

You've Been Circy'd!Clickzine StaffSilverNova MemberVIP MemberTurtle Power!Evil klikerWii OwnerHero of TimeGhostbuster!Pokemon Ball!
10th November, 2007 at 12:26:45 -



 
http://www.SilverNova.co.uk

   

Post Reply



 



Advertisement

Worth A Click