Re: validation function
[
Date Prev][
Date Next][
Thread Prev][
Thread Next]
[
Date Index]
[
Thread Index]
- Subject: Re: validation function
- From: Antero Vipunen <antero@...>
- Date: 2005年8月25日 10:46:11 +0700
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.