Eng:Repeat Until () (block)

The Repeat Until  block is a Control block and a C block. Blocks held inside this block will loop until the specified boolean statement is true, in which case the code beneath the block (if any) will execute. This loop is in similar nature to a  loop in some other programming languages.

Example Uses
As this block loops pieces of code until a condition is true, the block is the best way to run code until a desired condition has been reached. Some common uses: repeat until <(x position) = [100]> move (10) steps repeat until > go to [mouse pointer v] repeat until . . . reset timer repeat until <(timer) > (limit)> . . . end
 * Moving a sprite until its X or Y position is at a certain amount
 * Having a sprite stick to the mouse until the mouse is not down
 * Waiting for an event while performing an action
 * Repeating a script for an amount of time

Workaround
This block can be worked around with the following code:

forever . . . if then broadcast [next v] stop [this script v] end

when I receive [next v] .. .

These can break scripts and should be avoided when making one sprite one script projects, however.