Quote:
Originally Posted by StainlessS
is it intended to work like that, or just a happy accident.
|
As far as I know, it's deliberate and has always worked like that.
The parser accepts a chain of comparisons (see function ParseComparison() in scriptparser.cpp).
You can even do things like:
Code:
a < y > b == c # ... and more conditions if you want
which is interpreted as:
Code:
(a < y) && (y > b) && (b == c) # ...