[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: RE: It would be nice if I could do: "200502" <= a <="200601"instead of "200502" <= a and a <="200601"
- From: "Daniel Collins" <daniel.collins@...>
- Date: Mon, 22 May 2006 10:14:07 +0930
>> I cannot do the following in Lua: "200502" <= a <="200601"
>> I get the following error: cannot concatenate boolean to string.
>
> Are you sure that's the message? I get "attempt to compare string with
nil". --lhf
I get that message if a is not defined. If a is defined I get the
"attempt to compare boolean with string". I figure the boolean
expression gets parsed as ("200502" <= a) <= "200601".
- DC