"jump out" of keyup() event
<pre><code>$('input[type="text"]').keyup(function(e){

     if(e.which === 13){
         //if enter is pressed
         //ignore the rest of the code below
     }

     doStuff();
});
</code></pre>

<p>What would be the correct syntax for skipping the rest of the code under certain conditions (like when enter is pressed for example). I know that i would just wrap it in if statements, but I would like to know if there is something similar to <code>return false;</code>.</p>

<p>However, I'm aware of that return false does both an <code>e.stopPropagation()</code> and <code>e.preventDefault()</code>, and that's not obviously really what I'm after in this case. Return a boolean value perhaps?</p>
