lua-users home
lua-l archive

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


> 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="".