Is it possible to use && and set a variable on same line?
<p>I'm using:</p>

<pre><code>MyTestFunction() &amp;&amp; ExecuteMe();
</code></pre>

<p>for quick and easy conditional execution. I'd like to improve the code readability more in some places by creating:</p>

<ol>
<li><p>Single line guard statments I.E:</p>

<pre><code>MyTestFunction() &amp;&amp; return; 
//prevent execution of function early, but this isn't possible
</code></pre></li>
<li><p>Single line variable setters:</p>

<pre><code>MyTestFunction() &amp;&amp; myVar = 5;
</code></pre>

<p>(I realise I can do <code>myVar = MyTestFunction() || 5</code>; but that's not what I want)</p></li>
</ol>

<p>Anyone see a nice way around this?</p>
