??  What's a <cfisdefined> statement?  CF has no such tag.

IsDefined is a CF function you can use to test for the existence of a variable. 
It returns True or False depending on whether the variable exists (regardless 
of the value of the variable), thus:

<cfif IsDefined("attributes.myVar")>
  Do this section of code
</cfif>

<cfswitch>, on the other hand, is a tag that controls code execution depending 
on the results of an expression (such as the value of a variable), thus:

<cfswitch expression="#myVar#">
  <cfcase value="Red">
    Do code related to the value "Red".
  </cfcase>
  <cfcase value="Blue">
    Do code related to the value "Blue".
  </cfcase>
</cfswitch>

A cfswitch construct in index.cfm is the means Fusebox uses to determine which 
files to execute.  It evaluates the variable "fuseaction".  Index.cfm is 
referred to as the "fusebox" or "fusebox file".

Hope this helps clarify,
- Jeff

On 5 Jan 01, at 21:53, ibtoad wrote:

> How can I use <cfswitch> and <cfcase> to replace a <cfisdefined> statement?
> 
> Rich
> 
> -----Original Message-----
> From: Michael 'Maxx' Porter [mailto:[EMAIL PROTECTED]]
> Sent: Friday, January 05, 2001 6:58 PM
> To: Fusebox
> Subject: Re: <cfif>??
> 
> 
> If you are following FuseBox you should <cfswithch> <cfcase> in the
> index.cfm.
> 
> There are a few samples on www.fusebox.org
> 
> At 06:37 PM 1/5/01 -0500, you wrote:
> >Where do I put a <cfif> tag that determines which page I want to show?
> >Should it go in the index page or at the top of the display page?  I am
> >trying to follow the fusebox setup.
> >
> >Rich


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

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