I know you weren't looking for answers, but have a look at this:

<cfset one = "000" />
<cfset two = "0000" />

<cfif DE(one) EQ DE(two)>
        yes
<cfelse>
        no
</cfif>

Change them to be the same and it result in yes being displayed.

Ade

-----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]

Reply via email to