lua-users home
lua-l archive

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


Thanks very much Antero !!
Lemme check if these new lines get me right :)

Nilay 


On Thu, 25 Aug 2005 Antero Vipunen wrote :
>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.
>
>AMDG,
>  Antero Vipunen.