lua-users home
lua-l archive

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


On Fri, 2003-10-03 at 06:47, Jim Bumgardner wrote:
> Most of the languages I'm accustomed to would consider x to be false,
> which had
> put me into the bad habit of occasionally using zero when I wanted
> false.  

The manual does state quite clearly:

"""In Lua, both nil and false make a condition false; any other value
makes it true."""

D.

-- 
Daniel Silverstone                       http://www.digital-scurf.org/
Hostmaster, Webmaster, and Chief Code Wibbler: Digital-Scurf Unlimited
GPG Public key available from keyring.debian.org       KeyId: 20687895