Whatever message this page gives is out now! Go check it out!

isEmpty

Last update:
May 18, 2026
Returns true if the set has no elements.

Description

Convenience query equivalent to size() eq 0.

Returns

Boolean.

Category

ColdFusion Set member methods

Function syntax

set.isEmpty()

Parameters

ParameterDescription
None.

See also

Example

The following example uses this API in cfscript (syntax: set.isEmpty()).

<cfscript>
    s = setNew();
    writeOutput(s.isEmpty()); // true

    s.add("x");
    writeOutput(s.isEmpty()); // false
</cfscript>
      

Share this page

Was this page helpful?
We're glad. Tell us how this page helped.
We're sorry. Can you tell us what didn't work for you?
Thank you for your feedback. Your response will help improve this page.

On this page