Lua - repeat until statement

Published 2014/03/03 by Admin in LUA

The repeat until statement allows you to perform a repetitive task until a certain condition is met.

a=0

repeat

a=a+1

print(a)

until a==5

Output:

1

2

3

4

5


Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

my coding

This is a collection of all the coding gems I have found and would like to share with the world!