4.2.3 Wait until ()

View

The  block or “wait until ()” block is a control block and a stack block. The block pauses the execution of the script until the specified condition is performed.

 

Example

The example below instructs the sprite to say “Hello!” when the green flag is clicked and to wait until you press the space bar key on your keyboard before saying “How are you?”

Figure 114: Instructions to say "Hello!" when green flag is clicked


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