Try ListFind. Listfind returns exact matches. ListConatains will return partial matches.
On Wed, Aug 6, 2008 at 2:24 PM, Chad Gray <[EMAIL PROTECTED]> wrote: > 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:310300 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

