By gut-feeling I know the following to be wrong syntax, or at least not working as intended (tried it), but there is no error thrown either:
var x = 2;
if (1 < x < 3) ...
I guess the VM evaluates part of the expression first, then compares it to the rest, but does anybody actually know (with documentation link, preferably) what exactly is going on here?
Edit: I found a similar question that has solutions of how to write this, but I am actually interested in what is happening behind the scenes here.