Executes a callback/closure against every row in a query and returns true if the callback/closure returned true for every row.
queryEvery(query, closure [, parallel] [, maxThreads])
→ returns boolean
query.every(closure [, parallel] [, maxThreads])
20
Find out if every value in the query is greater than 50
<cfscript>
data = query(foo: [51,52,535]);
allGT50 = queryEvery(function(row){ return row.foo > 50; });
</cfscript>
Expected Result: true
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.