Folder = ListRest(dir,"/");
if (ListFind(strShowMe,Folder) GT 0) {
    // Found condition
} else {
    // Not Found Condition
}


> I need to check if part of one string matches part of another. For
example, I have to variables.
>
> dir = D:\documents\test
> strShowMe = documents\test,documents\test2,mywork\test,misc\test
>
>
>
> Using <cfif how could I check to see if any text from the "dir" variable,
either "documents" or "test" return a match in the strShowMe variable?
>


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
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
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to