IsDefined()
Evaluates a string value to determine whether the variable named in it exists.
Status:
IsDefined( value=string );
Returns: Boolean
Argument | Description |
---|---|
value
string,
required
|
String, enclosed in quotation marks. Name of variable to test for. Alias: variable |
Examples
//using isDefined with condition statement
if(isDefined("form.reset")){
//Code to be Executed
}
str={};
str.value="test";
writeDump(isDefined("str.value"));//true
See also
- Decision logic
- IsNull()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)