Macromedia ColdFusion 5 Training from the Source (With CD-ROM)

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

Категории