Javascript one line If, only state true
<p>In default 'if' one line statement are two block, for true, and false:</p>

<pre><code>variable ? true block : false block;
</code></pre>

<p>How declare 'if' with one block? </p>

<p>I expect something like this:</p>

<pre><code>variable ? true block;
</code></pre>