this function is deprcated, use instead "IsEmpty".
this function returns true if a value exists and is not "empty".
The following things are considered to be empty:
- string:"" (an empty string)
- number:return always false
- boolean: return always false
- array: [] (an empty array)
- struct: {} (an empty struct)
Lucee Function Reference
Function EMPTY
This Function is deprecated
Example
empty(variablestring variable):boolean
Arguments
The arguments for this function are set. You can not use other arguments except the following ones.
Name | Type | Required | Description |
---|---|---|---|
variable | variablestring | Yes |