queryIsEmpty

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

queryIsEmpty(query) → returns boolean

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