4.2.2 Repeat

View

The Repeat () block is a Control block and a C block. Blocks which are put inside this block will repeat (loop) a given or specified number of times, before allowing the execution of the script to continue. Below is a figure of a “Repeat ()” block.

 

Example

The example below instructs the sprite to say “Ha” five times when the green flag is clicked and then to say: “I am happy to see you again!”

Figure 113: Instructions to say "Ha"

Last modified: Wednesday, 29 September 2021, 4:55 PM