lua-users home
lua-l archive

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

On Tue, Nov 16, 2010 at 21:38, Alexander Gladysh <> wrote:
> Hi, list!
> Anyone have a module to work with 3-state boolean logic (true, false,
> indeterminate) in Lua?
> Otherwise: any suggestions on module design?
> Alexander.

I've been known to do "if x == false then foo() end"-type constructs
to handle false and nil differently. Is that the kind of thing you're
looking for?

Sent from my toaster.