[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: tribool
- From: HyperHacker <hyperhacker@...>
- Date: Tue, 16 Nov 2010 21:42:08 -0700
On Tue, Nov 16, 2010 at 21:38, Alexander Gladysh <agladysh@gmail.com> 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.