View Single Post
Old 19th October 2016, 00:40   #36  |  Link
Gavino
Avisynth language lover
 
Join Date: Dec 2007
Location: Spain
Posts: 3,431
Quote:
Originally Posted by StainlessS View Post
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) # ...
__________________
GScript and GRunT - complex Avisynth scripting made easier
Gavino is offline   Reply With Quote