WhileLoop

class WhileLoop(val condition: Expression, val body: Block) : Statement

Repeatedly executes a Block while a condition is true.

Constructors

Link copied to clipboard
fun WhileLoop(condition: Expression, body: Block)

Properties

Link copied to clipboard
val body: Block

the Block to execute on each iteration, while the condition is true.

Link copied to clipboard
val condition: Expression

an expression that will be evaluated before each iteration. It must evaluate to a boolean value, indicating whether the iteration should happen.