This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_ extPart_001_01C29009.BAE5C140
Content-Type: text/plain; charset="iso-8859-1"
I thought the only difference between these was precedence, but I'm seeing
another difference.
a test'
b il
haveBoth and b
# haveBoth is now equal to 'test'
haveBoth && b
# haveBoth is now equal to nil
Is this the expected behavior?
What I want to do is verify that two strings are not nil.
It looks like I have to use "&&" instead of "and" to do that.
***********************************************************************************
WARNING: All e-mail sent to and from this address will be received or
otherwise recorded by the A.G. Edwards corporate e-mail system and is
subject to archival, monitoring or review by, and/or disclosure to,
someone other than the recipient.
************************************************************************************
------_ extPart_001_01C29009.BAE5C140
Content-Type: text/html; charset="iso-8859-1"
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV
ontent-Type" CONTENT ext/html; charset o-8859-1">
<META NAME enerator" CONTENT S Exchange Server version 5.5.2653.12">
<TITLE>difference between "and" and "&&"</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE I thought the only difference between these was precedence, but I'm seeing another difference.</FONT>
</P>
<P><FONT SIZE a test'</FONT>
<BR><FONT SIZE b il</FONT>
<BR><FONT SIZE haveBoth and b</FONT>
<BR><FONT SIZE # haveBoth is now equal to 'test'</FONT>
</P>
<P><FONT SIZE haveBoth && b</FONT>
<BR><FONT SIZE # haveBoth is now equal to nil</FONT>
</P>
<P><FONT SIZE Is this the expected behavior?</FONT>
</P>
<P><FONT SIZE What I want to do is verify that two strings are not nil.</FONT>
<BR><FONT SIZE It looks like I have to use "&&" instead of "and" to do that.</FONT>
</P>
<CODE><FONT SIZE0<BR>
<BR>
***********************************************************************************<BR>
WARNING: All e-mail sent to and from this address will be received or<BR>
otherwise recorded by the A.G. Edwards corporate e-mail system and is<BR>
subject to archival, monitoring or review by, and/or disclosure to,<BR>
someone other than the recipient.<BR>
************************************************************************************<BR>
</FONT></CODE></BODY>
</HTML>
------_ extPart_001_01C29009.BAE5C140--