while Block
fun BlockHost.whileBlock(expression: Expression?, block: BlockHost.() -> Unit): ConditionalBlockBlockHost
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.