title: "Do nothing" using ternary operator
body: <p>I want to use the ternary operator like this - checking only the <code>true</code> part of the statement:</p>
  
  <pre><code>foo() ? bar() : /* Do nothing */;
  </code></pre>
  
  <p>Is it possible to exclude the logic of the "else" part of this statement? I tried using <code>return;</code> but the compiler gives the error. Basically all I want to achieve is a statement using ternary operator which would look like this:</p>
  
  <pre><code>foo() ? bar();
  </code></pre>
  
  <p>Is this achievable?</p>