<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx</link><description>Quick, what's the difference between If Blah = True Then Print "True!" Else Print "False!" and If Blah Then Print "True!" Else Print "False!" Is there a difference? Yes, there is a big difference. If Blah is True or False , then both statements do what</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Why VBScript Logical Operators Aren't</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#184497</link><pubDate>Fri, 16 Jul 2004 00:34:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:184497</guid><dc:creator>Gadgetopia</dc:creator><description>If you've ever lost a monitor to VBScript (from frustrated punching, mine has dents), Eric Lippert provides some solace in that there's at least a reason why it behaves that way. In JScript you can do something like this: if...</description></item><item><title>re: Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#184640</link><pubDate>Fri, 16 Jul 2004 01:35:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:184640</guid><dc:creator>Nicholas Allen</dc:creator><description>People might find more about how this works under &amp;quot;short circuit evaluation&amp;quot; instead of &amp;quot;lazy logic&amp;quot;.  Interestingly, if you're feeling lucky about &amp;quot;short circuit evaluation&amp;quot; you might end up on the KB article discussing this change in VB.NET.</description></item><item><title>re: Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#184688</link><pubDate>Fri, 16 Jul 2004 03:14:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:184688</guid><dc:creator>mike</dc:creator><description>Eric, what's your suggestion as an alternative for something like:&lt;br&gt;&lt;br&gt;If (Not Blah Is Nothing) And (Blah.Frob = 123) Then&lt;br&gt;&lt;br&gt;Nested Ifs?</description></item><item><title>re: Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#184719</link><pubDate>Fri, 16 Jul 2004 04:25:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:184719</guid><dc:creator>Eric Lippert</dc:creator><description>Right -- in VB.NET you can say If Blah AndAlso Foo Then ... and it will do short-circuit evaluation.  In VBScript and VB6, you're stuck with nested statements.&lt;br&gt;</description></item><item><title>re: Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#184755</link><pubDate>Fri, 16 Jul 2004 05:28:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:184755</guid><dc:creator>Mike Schinkel</dc:creator><description>&amp;gt;&amp;gt; What's going on is that VBScript is not logical. VBScript is bitwise. &lt;br&gt;&lt;br&gt;So does that mean is someone is not being logical, they are being bitwise?  And conversely, that if they are being logical they are definitely not being bitwise?  &lt;br&gt;&lt;br&gt;&amp;gt;&amp;gt; Conditional statements should always take Booleans. Or, in other words, use Booleans as Booleans, use nothing else as Booleans. &lt;br&gt;&lt;br&gt;Well, duuuuh!  Oh, sorry, I forgot there are also C-language types in this world. :)</description></item><item><title>re: Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#185311</link><pubDate>Fri, 16 Jul 2004 14:43:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:185311</guid><dc:creator>Eric Lippert</dc:creator><description>&amp;gt; So does that mean is someone is not being logical, they are being bitwise&lt;br&gt;&lt;br&gt;That's a very bitwise question.</description></item><item><title>re: Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#185548</link><pubDate>Fri, 16 Jul 2004 19:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:185548</guid><dc:creator>Zac</dc:creator><description>Personally, I like being a bit foolish type.&lt;br&gt;&lt;br&gt;Oh, the ironicity...</description></item><item><title>re: Double Negatives</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#198266</link><pubDate>Tue, 27 Jul 2004 12:24:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:198266</guid><dc:creator>The Daily WTF</dc:creator><description /></item><item><title>re: Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#1932390</link><pubDate>Thu, 22 Mar 2007 21:28:44 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:1932390</guid><dc:creator>JoNo</dc:creator><description>&lt;p&gt;Genius!!!!!&lt;/p&gt;
&lt;p&gt;You saved me from growing gray hair!&lt;/p&gt;
&lt;p&gt;Thx,&lt;/p&gt;
&lt;p&gt;~J&lt;/p&gt;
</description></item><item><title>re: Not Logical Is VBScript</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#2244311</link><pubDate>Mon, 23 Apr 2007 12:58:52 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:2244311</guid><dc:creator>Klas Minnbergh</dc:creator><description>&lt;p&gt;Howcome the god of order (EL) rules over the domain of chaos (vbscript)?&lt;/p&gt;
</description></item><item><title>If bPigsCanFly = False, I get Error: 0x8004100A on Line 79 | keyongtech</title><link>http://blogs.msdn.com/ericlippert/archive/2004/07/15/184431.aspx#9361465</link><pubDate>Thu, 22 Jan 2009 05:07:01 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9361465</guid><dc:creator>If bPigsCanFly = False, I get Error: 0x8004100A on Line 79 | keyongtech</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.keyongtech.com/1949224-if-bpigscanfly-false-i-get"&gt;http://www.keyongtech.com/1949224-if-bpigscanfly-false-i-get&lt;/a&gt;&lt;/p&gt;
</description></item></channel></rss>