问题
probably pretty easy, but I wonder what the ~= operator means in lua, as in
if x ~= params then
Searched but found nothing.
回答1:
the ~= is not equals
It is the equivalent in other languages of !=
回答2:
The operator ~= is exactly the negation of equality (==).
See docs.
回答3:
During compilation it gets translated to not a == b.
来源:https://stackoverflow.com/questions/34713203/what-does-lua-operator-mean