TRY: <CFSET tenzeros = "0000000000">
<CFSET elevenenzeros = "00000000000"> <CFOUTPUT> #tenzeros# IS <CFIF tenzeros IS elevenenzeros>EQUAL<CFELSE>NOT EQUAL</CFIF> TO #elevenenzeros#<BR> #tenzeros# IS <CFIF NOT Compare(tenzeros, elevenenzeros)>EQUAL<CFELSE>NOT EQUAL</CFIF> TO #elevenenzeros#<BR> </CFOUTPUT> Use CompareNoCase when using mixed strings. Allan --------------------------------------------------------------- ----- Original Message ----- From: Peter Harrison To: [EMAIL PROTECTED] Sent: Thursday, December 11, 2003 7:10 PM Subject: [cfmail] RE: [ cf-dev ] When two different strings are the same You never know, they might have had two streams of logic hidden in there. - Peter -----Original Message----- From: Steve Martin [mailto:[EMAIL PROTECTED] Sent: 11 December 2003 17:52 To: [EMAIL PROTECTED] Subject: RE: [ cf-dev ] When two different strings are the same err, "is" is functionally equivalent to "eq" > -----Original Message----- > From: Peter Harrison [mailto:[EMAIL PROTECTED] > Sent: 11 December 2003 17:43 > To: [EMAIL PROTECTED] > Subject: RE: [ cf-dev ] When two different strings are the same > > > How does <cfif tenzeros is elevenzeros> cope? > > - Peter > > -----Original Message----- > From: Paolo Piponi [mailto:[EMAIL PROTECTED] > Sent: 11 December 2003 11:37 > To: '[EMAIL PROTECTED]' > Subject: [ cf-dev ] When two different strings are the same > > > An unfortunate result of not having numerics and strings in CF: > > <cfset tenzeros="0000000000"> > <cfset elevenzeros="00000000000"> > <cfif tenzeros eq elevenzeros>These two strings are not the > same, but this > code thinks they are.</cfif> > > Don't ask why I did this, I can work round it, but just a > little quirk I > thought I'd share. > > Paolo > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > > > -- > ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ > > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > For human help, e-mail: [EMAIL PROTECTED] > > -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED] -- ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/ To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] For human help, e-mail: [EMAIL PROTECTED]
