Use the find function

<cfif find(session.showme,session.strfilename,0) gte 0>
        ....
<cfelse>
        .....
</cfif>
 
but from the example that could be ambigious, as there could be more than
one mywork2 in different sub folders.

Jason Lees
Systems Developer
National Express Coaches Ltd.



-----Original Message-----
From: FlashGuy [mailto:[EMAIL PROTECTED]]
Sent: 02 December 2002 16:08
To: CF-Talk
Subject: Checking SESSION variable


Hi,

I have session variable that contains the directory name
"session.strFileName". I also have another session variable "session.ShowMe"
that contains multiple directory names 
(comma-delimited) which i'm setting from my database. Basically, i need to
check if the directory "session.strFileName" exists in the variable
"session.showme".

Example:

session.strfilename = 'mywork'

session.showme = 'c:\temp\dir1,c:\temp\dir2,c:\temp\mywork,c:\temp\mywork2'



---------------------------------------------------
Colonel Nathan R. Jessop
Commanding Officer
Marine Ground Forces
Guatanamo Bay, Cuba
---------------------------------------------------




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to