It happens because a positive match would be BLACK/WHITE, and not just
Black... HTH.

-----Original Message-----
From: Chad Gray [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, August 06, 2008 2:25 PM
To: CF-Talk
Subject: list and ListContainsNoCase

Why is this happening?  I don't want to display the variable ColorName if it
has a value of something in my list "dontShowList".

If colorname is "BLACK", "4", "Process" etc it does not show them.  It
should show because "BLACK" is not in my list.  BLACK/WHITE is in my list,
but not BLACK.

It is like ListContainsNoCase does not now the delimiter for the list is
comma.


<cfset colorname = "BLACK">
 
<cfset dontShowList = "BLACK/WHITE,4 COLOR PROCESS,CC,MM,YY,KK">

<cfif NOT ListContainsNoCase(variables.dontShowList, variables.ColorName)>
<cfoutput>#variables.ColorName#</cfoutput>
</cfif>




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310298
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to