<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[The &quot;Repeat Until&quot; Block]]></title><description><![CDATA[<p dir="auto"> </p>
<h2><a class="anchor-offset" name="prerequisite"></a>Prerequisite</h2>
<ul>
<li><a href="/topic/73/working-with-blocks">Working with Blocks</a></li>
</ul>
<p dir="auto"> </p>
<h2><a class="anchor-offset" name="description"></a>Description</h2>
<p dir="auto">The “repeat until” block is a C block with boolean input in the control category.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/958d8797-899d-428c-84d1-9d289dfd28d8.PNG" width="550" /><br />
 </p>
<h2><a class="anchor-offset" name="how-does-this-block-work"></a>How does this block work?</h2>
<p dir="auto">This block will keep repeating the blocks inside it until a condition becomes true. In other words, this block will check the condition first, and if the condition is not true, it will run all the blocks inside its "mouth’ once, then it checks the condition again. If the condition is still not true, then the blocks inside will run again …</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/890b230f-df08-4559-9609-5aff14b1d539.gif" width="900" style="border-radius:5px;border:1px solid #29622d" /><br />
 </p>
<h2><a class="anchor-offset" name="if-the-condition-is-already-true"></a>If the condition is already true</h2>
<p dir="auto">If the condition given to the “repeat until” block is already true, then the blocks inside will NOT run at all.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/bca74673-0402-4c47-a468-ddf326bbfbac.gif" width="900" style="border-radius:5px;border:1px solid #29622d" /><br />
 </p>
<h2><a class="anchor-offset" name="animation-with-repeat-until-block"></a>Animation with “Repeat until” Block</h2>
<p dir="auto">Here is how you can create an animation with repeat until block. Since the butterfly is not touching the flower, the condition is false for the repeat until block in the beginning. Therefore, the blocks inside will make the butterfly move down repeatedly. When the butterfly becomes touching the flower, the condition becomes true. At that time, the blocks below the “repeat until” block will run instead.</p>
<p dir="auto"><img src="https://cdncreaticodecom.b-cdn.net/scratch-gui-projects/forum/f78a0eb7-7306-4047-9f2d-eb999ac25e51.gif" width="900" style="border-radius:5px;border:1px solid #29622d" /><br />
 </p>
]]></description><link>https://forum.creaticode.com/topic/278/the-repeat-until-block</link><generator>RSS for Node</generator><lastBuildDate>Tue, 09 Jun 2026 04:52:55 GMT</lastBuildDate><atom:link href="https://forum.creaticode.com/topic/278.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 07 Jul 2022 04:52:44 GMT</pubDate><ttl>60</ttl></channel></rss>