[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Mixing strings and numbers
- From: "Aaron Brown" <arundelo@...>
- Date: Thu, 14 Dec 2006 22:47:41 -0500
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).
Beginning Lua Programming: http://www.amazon.com/gp/product/0470069171/