How to combine two JavaScript statements into one
<p>Sometimes I want to combine two statements into one to omit curly braces in conditionals. For example, in PHP, instead of writing</p>

<pre><code>if ($direction == 'south-east') {
    $x++;
    $y++;
    }
</code></pre>

<p>I would write</p>

<pre><code>if ($direction == 'south-east') $x++ and $y++;
</code></pre>

<p>but is there a way to do that in JavaScript? Writing <code>x++ &amp;&amp; y++</code> doesn't seem to work.</p>
