Yes. It still won't work?
It always returns "No Match!"
<cfset urls = "mywork,documents,programs,utilities">
<cfif ListFindNoCase(urls,SESSION.DisplayShowMe)>
Match Found!
<cfelse>
No Match!
</cfif>
<a
href="#cgi.script_name#?dir=#URLEncodedFormat(dir)##URLEncodedFormat(SESSION.stDirFileName[i])#\"
class="dirlinks"
alt="#SESSION.stDirFileName[i]#">#SESSION.stDirFileName[i]#</a>
</td>
On Wed, 16 Jul 2003 10:02:43 -0400, Randell B Adkins wrote:
> Did you try ListContains
>
>
>
> >>> [EMAIL PROTECTED] 07/16/03 09:58AM >>>
> 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