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