Can someone confirm to me that this is the correct behaviour for
listcontainsNoCase:
<cfscript>
if( listContainsNoCase("MRS,MS,MISS", "mr" , "," )) {
gender = "F";
} else {
gender = "m";
}
</cfscript>
<cfoutput>#gender#</cfoutput>
returns F, if I change the first entry in the list to MZ, M gets
outputted.
I'm assuming this is because MRS contains 'MR' however I thought the
whole point of having a listcontainsNocase function (as opposed to using
contains() ) was that the function would look at each entry as a whole?
Thanks
Kola
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm