<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-2681129917095624740.post2663078107911472059..comments</id><updated>2009-03-19T08:18:52.787+10:00</updated><title type='text'>Comments on Flex and the City: On using "if(foo)" vs "if(foo != null)"</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://flex.joshmcdonald.info/feeds/2663078107911472059/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681129917095624740/2663078107911472059/comments/default'/><link rel='alternate' type='text/html' href='http://flex.joshmcdonald.info/2009/03/on-using-iffoo-vs-iffoo-null.html'/><author><name>Josh McDonald</name><uri>http://www.blogger.com/profile/16442649328289782363</uri><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-2681129917095624740.post-4588286126730207979</id><published>2009-03-19T08:18:00.000+10:00</published><updated>2009-03-19T08:18:00.000+10:00</updated><title type='text'>@Stas - you're right, cheers!</title><content type='html'>@Stas - you're right, cheers!</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681129917095624740/2663078107911472059/comments/default/4588286126730207979'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681129917095624740/2663078107911472059/comments/default/4588286126730207979'/><link rel='alternate' type='text/html' href='http://flex.joshmcdonald.info/2009/03/on-using-iffoo-vs-iffoo-null.html?showComment=1237414680000#c4588286126730207979' title=''/><author><name>Josh McDonald</name><uri>http://www.blogger.com/profile/16442649328289782363</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='07331733446040482597'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://flex.joshmcdonald.info/2009/03/on-using-iffoo-vs-iffoo-null.html' ref='tag:blogger.com,1999:blog-2681129917095624740.post-2663078107911472059' source='http://www.blogger.com/feeds/2681129917095624740/posts/default/2663078107911472059' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-2681129917095624740.post-7967476957141068883</id><published>2009-03-19T03:15:00.000+10:00</published><updated>2009-03-19T03:15:00.000+10:00</updated><title type='text'>I think  "if (myInstance)" should be changed to  "...</title><content type='html'>I think  "if (myInstance)" should be changed to  "if (usefulObject)"?</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681129917095624740/2663078107911472059/comments/default/7967476957141068883'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681129917095624740/2663078107911472059/comments/default/7967476957141068883'/><link rel='alternate' type='text/html' href='http://flex.joshmcdonald.info/2009/03/on-using-iffoo-vs-iffoo-null.html?showComment=1237396500000#c7967476957141068883' title=''/><author><name>Stas</name><uri>http://www.blogger.com/profile/08238163829739410332</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://flex.joshmcdonald.info/2009/03/on-using-iffoo-vs-iffoo-null.html' ref='tag:blogger.com,1999:blog-2681129917095624740.post-2663078107911472059' source='http://www.blogger.com/feeds/2681129917095624740/posts/default/2663078107911472059' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-2681129917095624740.post-3830878265939741246</id><published>2009-03-19T01:12:00.000+10:00</published><updated>2009-03-19T01:12:00.000+10:00</updated><title type='text'>I think another thing to consider are E4X XMLList ...</title><content type='html'>I think another thing to consider are E4X XMLList objects. When empty, they have a value of undefined, though their Boolean conversion (used in if statements) still returns true.  So:&lt;BR/&gt;&lt;BR/&gt;trace(Boolean(new XMLList())); // true&lt;BR/&gt;trace(new XMLList() == undefined); // true&lt;BR/&gt;&lt;BR/&gt;They can both exist or not exist depending on how you write your condition.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/2681129917095624740/2663078107911472059/comments/default/3830878265939741246'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/2681129917095624740/2663078107911472059/comments/default/3830878265939741246'/><link rel='alternate' type='text/html' href='http://flex.joshmcdonald.info/2009/03/on-using-iffoo-vs-iffoo-null.html?showComment=1237389120000#c3830878265939741246' title=''/><author><name>senocular</name><uri>http://www.blogger.com/profile/14970378609683678133</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://flex.joshmcdonald.info/2009/03/on-using-iffoo-vs-iffoo-null.html' ref='tag:blogger.com,1999:blog-2681129917095624740.post-2663078107911472059' source='http://www.blogger.com/feeds/2681129917095624740/posts/default/2663078107911472059' type='text/html'/></entry></feed>