Multiple comparison operators in a JavaScript boolean expression
<p>I'm trying to check whether the variable y is less than x and greater than z, but this boolean expression is returning false for some reason. Does JavaScript allow boolean expressions to be written concisely like this? If so, what is the correct syntax?</p>

<pre><code>x = 2;
y = 3;
z = 4;

if(x &gt; y &gt; z){
    alert("x &gt; y &gt; z"); //Nothing happens!
}
</code></pre>
