This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2007-03-09 05:17:54

shadowfirebird
Scratcher
Registered: 2007-03-09
Posts: 3

repeat ... until block?

Am I being thick, or is there no block that implements a repeat...until (do...while, whatever you want to call it) construct?

Just a break statement would do it ... although if you'd rather not implement that for stylistic reasons, I can understand that.

Last edited by shadowfirebird (2007-03-09 05:19:41)

Offline

 

#2 2007-03-09 22:48:20

johnm
Scratcher
Registered: 2007-03-08
Posts: 100+

Re: repeat ... until block?

You're right, there's no "repeat until" block and it would be useful. It's on our short list of features to add so it will probably make it into the next version of Scratch. The next release will come out in April.

  -- John

Last edited by johnm (2007-03-09 22:48:51)

Offline

 

#3 2007-03-11 23:05:14

jay
Scratch Team
Registered: 2007-03-11
Posts: 59

Re: repeat ... until block?

As you suggested, it is possible to use a "break," which is called "stop script" in Scratch, to do what you're asking. This code should simulate a do-while (or repeat until) loop for you
http://www.media.mit.edu/~silver/scratch/doWhile.jpg

Let me know if that is helpful for you, or if I missed the point of what you were asking.

Offline

 

#4 2008-08-24 10:13:51

likegames
Scratcher
Registered: 2008-03-24
Posts: 100+

Re: repeat ... until block?

There Is A Repeat Until Block You Dumby's


There are 10 types of people in this world: Those who understand trinary, those who don't, and those who think this is the same old signature.
Three lines! (and base three!)

Offline

 

#5 2008-08-24 10:19:03

keroro645
Scratcher
Registered: 2008-06-07
Posts: 1000+

Re: repeat ... until block?

This is an old topic.There was no repeat until block in the older scratch versions i bet.

Offline

 

#6 2008-08-24 10:37:32

coolstuff
Community Moderator
Registered: 2008-03-06
Posts: 1000+

Re: repeat ... until block?

likegames wrote:

There Is A Repeat Until Block You Dumby's

That's not very nice, now, is it?

Offline

 

#7 2008-08-24 12:54:14

Bluestribute
Scratcher
Registered: 2008-01-24
Posts: 1000+

Re: repeat ... until block?

coolstuff wrote:

likegames wrote:

There Is A Repeat Until Block You Dumby's

That's not very nice, now, is it?

It's sarcasm. Trust me


http://img247.imageshack.us/img247/1204/bluestributett4.jpg
That's my PSN ID. I know tons of COD4 glitches. Add me as your friend. Oh, and get a headset

Offline

 

#8 2008-08-25 04:53:48

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: repeat ... until block?

This is an outdated topic, I am going to close it.


Jens Mönig

Offline

 

Board footer