Well the SESSION variable can be equal to 
"D:\mywork,D:\documents,D:\programs,D:\utilities". Sometimes only 1 or 2 directories 
would be in the SESSION varaible.

Does the below code check for an "exact" match? I don't need an exact match just 
strings that I list.

<cfset urls = "mywork,documents,programs,utilities">


On Wed, 16 Jul 2003 09:10:31 -0500, Raymond Camden wrote:

> Are you sure session.displayShowMe is mywork?
> 
> ========================================================================
> ===
> Raymond Camden, ColdFusion Jedi Master for Mindseye, Inc
> (www.mindseye.com)
> Member of Team Macromedia (http://www.macromedia.com/go/teammacromedia)
> 
> Email    : [EMAIL PROTECTED]
> Blog     : www.camdenfamily.com/morpheus/blog
> Yahoo IM : morpheus
> 
> "My ally is the Force, and a powerful ally it is." - Yoda 
> 
> > -----Original Message-----
> > From: Bushy [mailto:[EMAIL PROTECTED] 
> > Sent: Wednesday, July 16, 2003 7:59 AM
> > To: CF-Talk
> > Subject: Syntax not correct?
> > 
> > 
> > Hi,
> > 
> > Whats wrong with the syntax below. It doesn't seem to work.
> > 
> > The below SESSIOn varaible is equal to 'mywork'
> > 
> > I want to check the SESSION variable for 'mywork' and if it 
> > exists do this...other do else.
> > 
> > The SESSION could contains multiple checks. For example the 
> > <cfset could contain:
> > 
> > <cfset urls = "mywork,documents,programs,utilities">...etc.
> > 
> > 
> > #SESSION.DisplayShowMe#<br>
> > 
> > <cfset urls = "mywork">
> > 
> > <cfif listFindNoCase(urls,SESSION.DisplayShowMe)>
> > Match Found!
> > <cfelse>
> > No Match!
> > </cfif>
> > 
> > 
> > 
> > 
> > 
> 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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

This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
http://www.cfhosting.com

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to