[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re: validation function
- From: "Nilay Tripathi" <nilaytripathi@...>
- Date: 25 Aug 2005 07:08:35 -0000
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.