lua-users home
lua-l archive

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


> > >     data[i][text] = data[i][text] and (data[i][text] + 1) or 1
> > 
> >    data[i][text] = (data[i][text] or 0) + 1
> > 
> [...]
> 
> thanks ... I wrote it wrongly into the mail...the original
> is well, healthy and up and running ;)

The one in the message was not wrong at all. I just wanted to suggest a
prettier way to write it.

-- Roberto