Last updated 4 years ago
Was this helpful?
The while construct is almost like the if construct, except that it will keep executing its block as long the given expression is true.
while
if
var n = 10 while (n > 0) { say n n -= 1 }