javascript check for not null
<p>Below is a code snippet, where we retrieve a form value.
Before further processing check if the value is not null..</p>

<pre><code>//-- code snippet starts here

var val = document.FileList.hiddenInfo.value;
alert("val is "+val);  //-- this prints null which is as expected
if(null!= val)
{
   alert("value is "+val.length); //-- this returns 4
}
else
{
   alert("value* is null");
}

`
//-- ends here
</code></pre>

<p>Any ideas why it happens so.. ??</p>
