I figured this out using a loop. 

Thanks,
Mark

-----Original Message-----
From: Mark Leder [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 23, 2006 2:17 PM
To: CF-Talk
Subject: Compare cfdirectory name

I'm trying to compare a URL passed value to the results of a cfdirectory,
then direct the user depending on whether or not the file exists in the
cfdirectory list.  
 
As a simple example:
 
url.DIRECTURL    = GR newsletter vol 14 issue 5 June 06.doc
dList.NAME         = GR newsletter vol 14 issue 5 June 06.doc (from the
cfdirectory list)
 
<cfif URL.directURL EQ dList.name>Yes<cfelse>No</cfif>
 
I cannnot get this to work, even though the name and the URL are exactly the
same.  I've tried urlencode and decode in various ways without success.
Even if the file and the URL are named without spaces or using underscores
between words, it still doesn't work.
 
Thanks,
Mark
 





~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244688
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to