1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
local a = 0 function someThing() print "do some thing" a = a+1 end local c = true function someOtherThing() print "do some other thing" c = a < 3 end repeat someThing() someOtherThing() print(c) until c ~= true
1 2 3 4 5 6 7 8 9
do some thing do some other thing true do some thing do some other thing true do some thing do some other thing false