Empty()

edit

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:

  • "" (an empty string)
  • [] (an empty array)
  • {} (an empty struct)

Any other value returns false

Status:

deprecated

Empty( variable=variableString );

Returns: Boolean

Argument Description
variable
variableString, required
edit

Variable to check

Alias: variableName, object

Examples

edit

There are currently no examples for this function.

Related System Properties / Environment Variables

  • LUCEE_SECURITY_LIMITEVALUATION - Disable evaluating expressions when accessing scopes, Lucee 7 defaults to enabling this setting for security reasons. A boolean value. If enabled, limits variable evaluation in functions/tags. If enabled, you cannot use expressions within [ ] like this: susi[getVariableName()]. This affects the following functions: IsDefined, structGet, structSort (when using pathToSubElement), empty and the following tags: savecontent attribute `variable`
    Type: boolean, Default: false (Lucee 6), true (Lucee 7)

See also