whileBlock

Adds a 'while' loop. This is a custom block concept, not a default Scratch block.

Parameters

expression

The condition to continue the loop.

block

The script to repeat.