lua-users home
lua-l archive

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

Nilay Tripathi wrote:

if string.find(s,".")~='nil' then

And why 'nil'? You must use nil without quotes. Moreover, nil is false-value, so you can simply write:

"if someexpr then ..." instead of "if someexpr ~= nil then ..."

But not in the cases when someexpr may evaluate to false.

 Antero Vipunen.