I think any kind of null array should be different from an array of zero length.<br><br><div class="gmail_quote">On Mon, May 14, 2012 at 3:55 PM, simendsjo <span dir="ltr"><<a href="mailto:simendsjo@gmail.com" target="_blank">simendsjo@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">On Mon, 14 May 2012 13:51:40 +0200, deadalnix <<a href="mailto:deadalnix@gmail.com" target="_blank">deadalnix@gmail.com</a>> wrote:<br>

<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Le 14/05/2012 12:49, Gor Gyolchanyan a écrit :<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So, null arrays and empty arrays are always the same, except for an<br>
empty string, which is a valid non-nill array of characters with length<br>
0, right?<br>
<br>
</blockquote>
<br>
If it is the current behavior, it deserve a WAT !<br>
</blockquote>
<br></div></div>
It is according to my tests.. It's quite a gotcha.<br>
So check for .length or == "" or == [] if you need "null or empty" and use "is null" for null/[]<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>Bye,<br>Gor Gyolchanyan.<br>