Hi,

Something is not right with my syntax. Below are my variables and an example of the 
output that could occur using <cfdirectory and <cfloop

<!---
SAMPLE OUTPUT:

Session.stDirFileType[i] = Dir
Session.stDirFileName[i] = test
COOKIE.DisplaySelect = temp,test,windows
--->

Bascially I need to check to see if any of the directorys in "COOKIE.DisplaySelect" 
(pulled in from database) matches the "Session.stDirFileName[i]" variable and if so,
run the code otherwise, do nothing. Something is not quite right below. I know its not 
doing the match properly because its trying to match everything thats in 
"COOKIE.DisplaySelect" with "Session.stDirFileName[i]". Should I be using a 
"IsDefined"?

        <cfif Session.stDirFileType[i] eq "Dir" AND 
ListFindNoCase(#COOKIE.DisplaySelect#,#Session.stDirFileName[i]#)>

..code stripped...

</cfif>


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



______________________________________________________________________
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

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to