Code Editor
Learn
Loops & Iterators

Looping with 'Until'

Good work!

i = 3 while i > 0 do print i i -= 1 end j = 3 until j == 0 do print j j -= 1 end

In the example above, we wrote the same loop using while and using until.

Report a Bug
If you see a bug or any other issue with this page, please report it here.