[thelist] Cold Fusion Script

Raymond Camden jedimaster at macromedia.com
Thu Aug 16 12:54:55 CDT 2001


If you are looking for a way to see if it doesn't exist or is not valid, you
can do something like

<CFIF IsDefined("URL.CSID") AND Mid(....)>
	...
<CFELSE>
	blah blah blah
</CFIF>

=======================================================================
Raymond Camden, Principal Spectra Compliance Engineer for Macromedia

Email   : jedimaster at macromedia.com
ICQ UIN : 3679482

"My ally is the Force, and a powerful ally it is." - Yoda

> -----Original Message-----
> From: thelist-admin at lists.evolt.org
> [mailto:thelist-admin at lists.evolt.org]On Behalf Of Matt Mozer
> Sent: Thursday, August 16, 2001 1:48 PM
> To: thelist at lists.evolt.org
> Subject: [thelist] Cold Fusion Script
>
>
>
> Hello all...
> I have written a custom script that dynamically generates a login
> or logout
> image when a GUID string exists. The problem is, this will only work when
> The GUID is present. If the CSID parameter doesn't exist (when a user is
> logged out) I get an error. The logic should say; if the GUID is
> NEQ to c or
> if it doesn't exist, then display this image. I need to
> incorporate in the
> if statement that the GUID string may not exist at all. Could
> anyone help me
> in figuring this out?
> Thank You
>
> <cfscript>
> if (mid("#URL.CSID#",2,1) NEQ "c")
> 	tmp = "<IMG height=30 src=images/toolbar_09_in.gif width=73>";
> else
> 	tmp = "<IMG height=30 src=images/toolbar/toolbar_09_out.gif
> width=73>";
> </cfscript>
> <cfoutput>
> 			#tmp#
> </cfoutput>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>
> ---------------------------------------
> For unsubscribe and other options, including
> the Tip Harvester and archive of TheList go to:
> http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list