Lucee Function Reference

empty()

This Function is deprecated
this function is deprecated, 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)

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