<?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: Exercise 5-4: Boolean expressions</title>
	<atom:link href="http://www.learningprocessing.com/exercises/chapter-5/exercise-5-4/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.learningprocessing.com</link>
	<description>A Beginner's Guide to Programming Images, Animation, and Interaction by Daniel Shiffman</description>
	<lastBuildDate>Mon, 22 Mar 2010 14:53:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Daniel Shiffman</title>
		<link>http://www.learningprocessing.com/exercises/chapter-5/exercise-5-4/comment-page-1/#comment-8546</link>
		<dc:creator>Daniel Shiffman</dc:creator>
		<pubDate>Wed, 27 Jan 2010 01:50:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=1366#comment-8546</guid>
		<description>x does not equal 6, x equals five.  However, in the following expression:

&lt;pre&gt;
(x==6 &#124;&#124; x==5)
&lt;/pre&gt;

the &#124;&#124; represents an &quot;or&quot; meaning if x is equal to 6 OR x is equal to 5.  And it is equal to 5.  so the entire expression is true.

In the case of an AND:

&lt;pre&gt;
(x==6 &amp;&amp; x==5)
&lt;/pre&gt;

since x cannot be both 6 and 5 at the same time, that expression is clearly false.</description>
		<content:encoded><![CDATA[<p>x does not equal 6, x equals five.  However, in the following expression:</p>
<pre>
(x==6 || x==5)
</pre>
<p>the || represents an &#8220;or&#8221; meaning if x is equal to 6 OR x is equal to 5.  And it is equal to 5.  so the entire expression is true.</p>
<p>In the case of an AND:</p>
<pre>
(x==6 &#038;&#038; x==5)
</pre>
<p>since x cannot be both 6 and 5 at the same time, that expression is clearly false.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Emily</title>
		<link>http://www.learningprocessing.com/exercises/chapter-5/exercise-5-4/comment-page-1/#comment-8543</link>
		<dc:creator>Emily</dc:creator>
		<pubDate>Tue, 26 Jan 2010 22:17:46 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=1366#comment-8543</guid>
		<description>I have the same question, how can x==6?</description>
		<content:encoded><![CDATA[<p>I have the same question, how can x==6?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gabriel mathews</title>
		<link>http://www.learningprocessing.com/exercises/chapter-5/exercise-5-4/comment-page-1/#comment-5757</link>
		<dc:creator>gabriel mathews</dc:creator>
		<pubDate>Wed, 21 Oct 2009 15:50:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=1366#comment-5757</guid>
		<description>Ah, I got it now. Thanks anywho.</description>
		<content:encoded><![CDATA[<p>Ah, I got it now. Thanks anywho.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gabe</title>
		<link>http://www.learningprocessing.com/exercises/chapter-5/exercise-5-4/comment-page-1/#comment-5747</link>
		<dc:creator>Gabe</dc:creator>
		<pubDate>Wed, 21 Oct 2009 04:46:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.learningprocessing.com/?page_id=1366#comment-5747</guid>
		<description>Wait, so how can x==6 &#124;&#124; x==5 be true if x=5? I got the others right. Is this meaning that in some cases 5 == 6?</description>
		<content:encoded><![CDATA[<p>Wait, so how can x==6 || x==5 be true if x=5? I got the others right. Is this meaning that in some cases 5 == 6?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
