How to "return" values in Shortcut for if-else
<p>How to return a value from a shortcut If-Else conditional statements ?</p>

<p>It works just fine when I used the following Block of Code ,</p>

<pre><code>var val =0;

function slide() {

  if(val != 0 ) { 
      val++ ;
  }else {
     return ;
   }

 //rest of my  code
}
</code></pre>

<p>The Problem is, I want to return values from shortcut IF-else conditions as follow's </p>

<pre><code>var val=0;

function slide() {

  val != 0 ? val++ : //here I want to return from function to stop execution of remaining  Block;

  //rest of my code
}
</code></pre>
