while

Repeat while a condition holds.

Example.kalm kalm
pub fun main() -> Unit:
    var count = 0
    while count < 3:
        sayLine(count)
        count += 1

Learn more.