<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Fancy Or</title>
	<atom:link href="http://jacksondunstan.com/articles/48/feed" rel="self" type="application/rss+xml" />
	<link>http://jacksondunstan.com/articles/48</link>
	<description>Mastering AS3</description>
	<lastBuildDate>Mon, 14 May 2012 17:02:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/48/comment-page-1#comment-84</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Wed, 30 Sep 2009 22:42:49 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=48#comment-84</guid>
		<description>Cool. Could you paste an example? I looked around a bit but didn&#039;t find anything.</description>
		<content:encoded><![CDATA[<p>Cool. Could you paste an example? I looked around a bit but didn&#8217;t find anything.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: TokiZR</title>
		<link>http://jacksondunstan.com/articles/48/comment-page-1#comment-83</link>
		<dc:creator>TokiZR</dc:creator>
		<pubDate>Wed, 30 Sep 2009 22:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=48#comment-83</guid>
		<description>This is incredibly common if you&#039;re writing Shell Script code.
Just not the same &quot;&#124;&#124;&quot; notation to the operand but the very same idea.</description>
		<content:encoded><![CDATA[<p>This is incredibly common if you&#8217;re writing Shell Script code.<br />
Just not the same &#8220;||&#8221; notation to the operand but the very same idea.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jackson</title>
		<link>http://jacksondunstan.com/articles/48/comment-page-1#comment-32</link>
		<dc:creator>jackson</dc:creator>
		<pubDate>Wed, 16 Sep 2009 20:29:55 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=48#comment-32</guid>
		<description>Lua has something just like this too:

&lt;pre lang=&quot;lua&quot;&gt;
function printIt(x)
  print(x and &quot;TRUE!&quot; or &quot;FALSE!&quot;)
end
print(&quot;valid&quot;) -- TRUE!
print(false) -- FALSE!
print({first=&quot;John&quot;,last=&quot;Smith&quot;}) -- TRUE!
print(nil) -- FALSE
&lt;/pre&gt;

It just looks nicer and less weirdly-ternary in AS3. Definitely one of my favorite AS3 features now. :)</description>
		<content:encoded><![CDATA[<p>Lua has something just like this too:</p>

<div class="wp_syntax"><div class="code"><pre class="lua" style="font-family:monospace;"><span style="color: #b1b100;">function</span> printIt<span style="color: #66cc66;">&#40;</span>x<span style="color: #66cc66;">&#41;</span>
  <span style="color: #b1b100;">print</span><span style="color: #66cc66;">&#40;</span>x <span style="color: #b1b100;">and</span> <span style="color: #ff0000;">&quot;TRUE!&quot;</span> <span style="color: #b1b100;">or</span> <span style="color: #ff0000;">&quot;FALSE!&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #b1b100;">end</span>
<span style="color: #b1b100;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;valid&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- TRUE!</span>
<span style="color: #b1b100;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">false</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- FALSE!</span>
<span style="color: #b1b100;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#123;</span>first<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;John&quot;</span>,last<span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;Smith&quot;</span><span style="color: #66cc66;">&#125;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- TRUE!</span>
<span style="color: #b1b100;">print</span><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span> <span style="color: #808080; font-style: italic;">-- FALSE</span></pre></div></div>

<p>It just looks nicer and less weirdly-ternary in AS3. Definitely one of my favorite AS3 features now. :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Troy Gilbert</title>
		<link>http://jacksondunstan.com/articles/48/comment-page-1#comment-30</link>
		<dc:creator>Troy Gilbert</dc:creator>
		<pubDate>Wed, 16 Sep 2009 20:23:56 +0000</pubDate>
		<guid isPermaLink="false">http://jacksondunstan.com/?p=48#comment-30</guid>
		<description>Hot dog, short circuit to the rescue! So, I guess if the first operand evaluates to anything &quot;true&quot; the second operand is never evaluated. Most excellent. I was always jealous that the Ruby guys have a similar shortcut for that ternary case.</description>
		<content:encoded><![CDATA[<p>Hot dog, short circuit to the rescue! So, I guess if the first operand evaluates to anything &#8220;true&#8221; the second operand is never evaluated. Most excellent. I was always jealous that the Ruby guys have a similar shortcut for that ternary case.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

