[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: parser hacking: conditional fields
- From: Javier Guerra Giraldez <javier@...>
- Date: Thu, 28 Feb 2013 23:20:07 -0500
On Thu, Feb 28, 2013 at 6:47 PM, Sven Olsen <sven2718@gmail.com> wrote:
> By chaining ~, I can write statements like the following, which are safe
> even when 'object' or any of it's subtables have a chance of being nil:
>
> color = object~icon~glow~color or white
you can change the metatable of nil to get that behavior.
--
Javier