Newbie having trouble with Javascript
<p>I'm trying to tokenize the string below, but execution terminates at the if statement...   What am I missing?   The my_tokens.length is OK on the alert, but fails on the if...</p>

<pre><code> var my_value = '1 1 0';
 var my_tokens = my_value.split(' ');
 alert('my_tokens=' + my_tokens); /* prints 1,1,0 as expected  */
 alert('my_tokens length=' + my_tokens.length);  /* prints 3 as expected */
   /* execution terminates at this if statement, and neither branch runs???  */
 if (my_tokens.length != 3)
   {alert('bad master record');}
 else
   {alert('decoded master record=');}  
</code></pre>
