How to write a jquery function that can return 3 possible options
<p>I have a basic points counter widget that I am working on.  I had an earlier question that got answered to help me get moving.  But I have a final question. Basically, I have a function that is going to return true or false, but I need a third option.</p>

<p>the logic is:</p>

<ul>
<li>if input char count is in range, user gets points</li>
<li>if user edits and count stays in range no new points</li>
<li>if user edits and count goes out of range after it was in range, then user looses points</li>
</ul>

<p>I think I hve this right, just not sure how to complete the function.</p>

<p><a href="http://jsfiddle.net/jNtJA/8/" rel="nofollow">http://jsfiddle.net/jNtJA/8/</a></p>

<pre><code> var check = false;

 function titleInc() {
     var length = $('#title').val().length;
     if (length &gt;= 5 &amp;&amp; length &lt;= 10 &amp;&amp; !check) {
         check = true;
         return true;
     } else if (check  &amp;&amp; length &lt; 5 &amp;&amp; length &gt; 10) {
         // Set the function to return DECREMENT
     } else {
         return false;
     }

     $('#title').blur(function () {
         var current = parseInt($('#end_val').val(), 10);
         if (titleInc()) {
             $('#end_val').val(current + 12);
         } else if(  ){
         // THERE NEEDS TO BE A WAY TO DECREMENT
         }
     });

 });
</code></pre>
