I don't have the answer you are looking for, but I know the following returns the
right result.
<CFIF compareNoCase("1,2", "1,2,3") NEQ 0>
Test passed (NOT same string)
<CFELSE>
Test failed (String the same)
</CFIF>
----- Original Message -----
From: "Tony Weeg" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, February 05, 2003 7:23 AM
Subject: RE: CF 4.5 --> CFMX odd IS evaluation (repost on macromedia forum)
> well.
>
> I have cfmx, win 2k and I get the same thing you get.
>
> odd isnt it.
>
> ...tony
>
> Tony Weeg
> Senior Web Developer
> UnCertified Advanced ColdFusion Developer
> Information System Design
> Navtrak, Inc.
> Mobile workforce monitoring, mapping & reporting
> www.navtrak.net
> 410.548.2337
>
> -----Original Message-----
> From: Joseph Thompson [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 04, 2003 4:06 PM
> To: CF-Talk
> Subject: CF 4.5 --> CFMX odd IS evaluation (repost on macromedia forum)
>
>
> The following was brought to my attention and I really don't know what
> to say.
>
> Has anyone ever seen this or have a good/bad/humourus explanation?
>
> >
>
>
>
>
>
> I'm sorry - I am totally baffled by this. Can someone please explain
> to me
> why this is happening? Create a page that contains the following code:
>
> <HTML>
> <BODY>
> <CFIF "1,2" IS "1,2,3">
> Test passed
> <CFELSE>
> Test failed
> </CFIF>
>
> <CFIF "1,2,3" IS "1,2">
> Test passed
> <CFELSE>
> Test failed
> </CFIF>
>
> <CFIF "0,1" IS "0,1,2">
> Test passed
> <CFELSE>
> Test failed
> </CFIF>
>
> <CFIF "2,3" IS "2,3,4">
> Test passed
> <CFELSE>
> Test failed
> </CFIF>
>
> <CFIF "x,y" IS "x,y,z">
> Test passed
> <CFELSE>
> Test failed
> </CFIF>
> </BODY>
> </HTML>
>
>
>
> Now, run it. The results I get on my CF5 server (I have tried this on
> multiple installations) are:
>
> Test passed
> Test passed
> Test failed
> Test failed
> Test failed
>
> I must be missing something here since the string "1,2,3" is obviously
> not
> the same as "1,2". Can someone PLEASE point out my stupid
> mistake? Would
> someone be so kind as to try it out on their installation of CF5?
>
> >
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4