lua-users home
lua-l archive

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


Sorry, you are correct.  It should be 

while(true) 

Interesting, maybe this was created by AI :).

tinyurl.com/yfbthnf2

On Wed, Mar 1, 2023 at 12:15 PM Shmuel Zeigerman <shmuz@013net.net> wrote:
On 01/03/2023 18:28, Ron Teitelbaum wrote:
> while(1)
> do
> statement(s)
> end
>
> Any non-zero value keeps the loop going.
>

In Lua zero value will also keep the loop going.

--
Shmuel