Try:
        <cfif ListFindNoCase(URLDecode(dir),"data","\")>

Jay Laengrich

-----Original Message-----
From: phumes1 [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 20, 2002 12:54 PM
To: ColdFusion User Group
Subject: <cfif not working??


Hi,

In this example the results from my #URLDecode(dir)# is
"C:\temp\test\data\123\"

I'm trying to check is the directory "data" exists in the variable and if
so, do something else.
The syntax below is not working properly. What am I doing wrong?

                        <cfif ListFindNoCase(URLDecode(dir),"\data")>
                                <h5>You are in the data directory</h5>
                        <cfelse>
                                             <h5>You are somewhere else</h5>
                        </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

Reply via email to