Returns whether or not a given value is "empty".

isEmpty(value) → returns boolean

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

value any

Sample code invoking the isEmpty function

Returns a boolean based on the given value. Strings, Arrays, Structs and queries are accepted data types.

isEmpty( {} )

Expected Result: true

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub