<cfset x = LCase(ListGetAt(GetFontFamily.sti,1,'.'))>
<cfif x CONTAINS 'aachen' OR x CONTAINS 'adelon'>
...code...
<cfelse>
. ..code...
</cfif>
If you do something like:
<cfif 'hello'>
blah
</cfif>
It will always work, because 'hello' is a non-zero value.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On
Behalf Of phumes1
Sent: Wednesday, February 06, 2002 11:05 AM
To: [EMAIL PROTECTED]
Subject: Re: <CFIF
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>
------------------------------------------------------------------------
-
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info:
www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org
-------------------------------------------------------------------------
This email server is running an evaluation copy of the MailShield anti-
spam software. Please contact your email administrator if you have any
questions about this message. MailShield product info: www.mailshield.com
-----------------------------------------------
To post, send email to [EMAIL PROTECTED]
To subscribe / unsubscribe: http://www.dfwcfug.org