Relational Metamethods
- Metamethods can be defined for:
- Equal (==) __eq
- Less Than (<) __lt
- Less Than or equal (<=) __le
- For the other operators the operands are reversed
- For example greater than (a>b) is the same as (b<a)
- For a ~= b the expression not(a == b) is used