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

#1 2011-10-01 17:42:51

KrIsMa
Scratcher
Registered: 2011-09-20
Posts: 500+

Repeat/forever block

What is the difference between the "forever if" block and the "repeat until" block?


http://blocks.scratchr.org/API.php?user=KrIsMa&action=onlineStatus&online=http://i49.tinypic.com/2pzic0m.png&offline=http://i49.tinypic.com/r7p10n.png
The Scratch Team (and fellow scratchers!) is/are so nice!!!

Offline

 

#2 2011-10-01 17:44:50

lilacfuzz101
Scratcher
Registered: 2010-05-22
Posts: 1000+

Re: Repeat/forever block

"Repeat Until" runs the script until the condition specified is ment.

"Forever If" only runs if the if statement is fufilled.


http://25.media.tumblr.com/tumblr_lzqaicLrY01r5wdo7o1_500.gif

Offline

 

#3 2011-10-01 17:52:12

Harakou
Community Moderator
Registered: 2009-10-11
Posts: 1000+

Re: Repeat/forever block

lilacfuzz is correct. Another thing though: the "repeat until" block will move on and run the next block in the script when it completes, whereas the "forever if" block will continually check for a condition and execute when that condition is true.

In other words, "repeat until" will end and move on, whereas "forever if" won't.


http://www.blocks.scratchr.org/API.php?action=random&return=image&link1=http://i.imgur.com/OZn2RD3.png&link2=http://i.imgur.com/duzaGTB.png&link3=http://i.imgur.com/CrDGvvZ.png&link4=http://i.imgur.com/POEpQyZ.png&link5=http://i.imgur.com/ZKJF8ac.png

Offline

 

Board footer