lua-users home
lua-l archive

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


Steve Heller wrote:

I thought a variable had to have a type (at any given
time), and that comparisons had to be to the correct type.

The operators > < >= <= require their operands to be both
numbers or both strings; the operators == ~= have no type
requirements (although two values of different types are
always considered unequal).

--
Aaron
Beginning Lua Programming: http://www.amazon.com/gp/product/0470069171/