I do not believe you can do a list(ray, bob) with the CONTAINS like that, I could be wrong though.
I would just do something like this: <cfif ListContainsNoCase(ListGetAt(GetFontFamily.sti,1,'.'), "aachen") OR ListContainsNoCase(ListGetAt(GetFontFamily.sti,1,'.'), "adelon")>true<cfelse>false</cfif> Snipe - <CF_BotMaster Network="EFNet" Channel="ColdFusion"> On Wed, 6 Feb 2002, Jeffry Houser wrote: > If memory serves me, you can do: > > My Name CONTAINS "ray, bob" > > though. So, the original poster could do: > > <cfif #LCase(ListGetAt(GetFontFamily.sti,1,'.'))# CONTAINS 'aachen, adelo n'> > > > > At 11:59 AM 02/06/2002 -0500, you wrote: > >You must have a proper expression on both sides of the OR statement. > >Here is what you wrote, in pseudo code: > > > >if my name is 'ray' or 'bob' > > > >This is not valid. It must be > > > >if my name is 'ray' OR my name is 'bob' > >> >>================================================================= > >Raymond Camden, Principal Spectra Compliance Engineer for Macromedia > > > >Email : [EMAIL PROTECTED] > >Yahoo IM : morpheus > > > >"My ally is the Force, and a powerful ally it is." - Yoda > > > > > -----Original Message----- > > > From: phumes1 [mailto:[EMAIL PROTECTED]] > > > Sent: Wednesday, February 06, 2002 11:58 AM > > > To: CF-Talk > > > Subject: Re: <CFIF statement > > > > > > > > > Hi, > > > > > > I have a problem with the syntax below. > > > > > > This works: > > > > > > <cfif #LCase(ListGetAt(GetFontFamily.sti,1,'.'))# CONTAINS 'aachen' > > > > ...code... > > > <cfelse> > > > ...code... > > > </cfif> > > > > > > > > > This does not: > > > > > > <cfif #LCase(ListGetAt(GetFontFamily.sti,1,'.'))# CONTAINS > > > 'aachen' OR > > > 'adelon'> > > > ...code... > > > <cfelse> > > > ...code... > > > </cfif> > > > > > > ______________________________________________________________________ Get Your Own Dedicated Windows 2000 Server PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER Instant Activation � $99/Month � Free Setup http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Archives: http://www.mail-archive.com/[email protected]/ Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

