else if in javascript
<p>I'm trying to calculate a string based on user input and show some message:</p>

<pre><code>$('#myInput').keyup(function() {
    if(this.value.length&lt;=158)
     $('#charCount').text('We will deduct 1 credit from your account');
    else if(this.value.length&gt;158 || this.value.length&lt;316)
         $('#charCount').text('We will deduct 2 credit from your account');
    else if(this.value.length&gt;316 || this.value.length&lt;400)
        $('#charCount').text('We will deduct 3 credit from your account');
});
</code></pre>

<p><a href="http://jsfiddle.net/p9jVB/11/" rel="nofollow">http://jsfiddle.net/p9jVB/11/</a></p>

<p>The problem is the last <code>else if</code> is not working... Have I missed something?</p>
