[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: dealing with null (not nil)
- From: Luiz Henrique de Figueiredo <lhf@...>
- Date: Wed, 27 Jul 2011 13:11:49 -0300
> But after I make mods, the editor publishes my data - not as mykey="", but as mykey=null - which my app chokes on.
> (It also mangles numbers. It turns mykey="2" into mykey=2.) The nerve!!
>
> Anyway, I can deal with the number problem, simply by wrapping it in tostring(). How do I deal with a null? Does lua have an isnull() function?
Do you mean nil instead of null? If you do mean null, then there is no
predefined global variable named null and you can just define it to be
whatever you want, say null="".