lua-users home
lua-l archive

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


>> 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