queryIsEmpty

Returns YES if a query has no rows, and NO otherwise. Equivalent to checking query.recordCount == 0.

queryIsEmpty(query) → returns boolean

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

Argument Reference

query query
Required

The query to check.

Examples
Sample code invoking the queryIsEmpty function

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

Fork me on GitHub