ISDEFINED

I l @ ve RuBoard

Used to determine whether or not a variable exists. Returns true if the variable does exist, false if it does not.

Syntax

 IsDefined("Name_of_variable") 

Parameters

IsDefined needs to know the name of the variable of which you want to check the existence.

Example

 <!--- Display a message if a product was added --->  <cfif IsDefined("url.message") AND url.message EQ "Product Added">   ** Product Added ** </cfif> 
I l @ ve RuBoard


Macromedia ColdFusion 5. Training from the Source
Macromedia ColdFusion 5 Training from the Source (With CD-ROM)
ISBN: 0201758474
EAN: 2147483647
Year: 2002
Pages: 99
Authors: Kevin Schmidt

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net