lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]



i=1 repeat ... i = 1+3 until i>10

Sure looks like an endless loop to me

Errr, i = i+3, of course.

Another of the avdantages of the "for equals" loop -- the loop conditions are easier to get right, or perhaps slightly harder to get wrong :-)