• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

check return var

Explorer ,
Oct 17, 2006 Oct 17, 2006

Copy link to clipboard

Copied

Hi,

How can I check whether a query from a CFC has returned anything without outputting the returnvariable?

i.e.: <cfif returnvariable EQ "">
<cfset varValue = "empty">
<cfelse>
<cfset varValue = 1>
</cfif>

Thanks.
TOPICS
Advanced techniques

Views

219

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 17, 2006 Oct 17, 2006

Copy link to clipboard

Copied

cfdump the variable


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Oct 17, 2006 Oct 17, 2006

Copy link to clipboard

Copied

LATEST
with the recordcount variable that comes with cfquery.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation