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

cfreturn

Explorer ,
Feb 21, 2012 Feb 21, 2012

Copy link to clipboard

Copied

This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/WSc3ff6d0ea77859461172e0811cbec22c24-7df7.html

Views

995

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
Participant ,
Feb 21, 2012 Feb 21, 2012

Copy link to clipboard

Copied

The docs are blatantly incorrect when it comes to this statement:

"You can code a maximum of one cfreturn tag within a function."

Here's some sample code that proves that you can have more than one return statement in a function:

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
Participant ,
Feb 21, 2012 Feb 21, 2012

Copy link to clipboard

Copied

Looks like the docs ate my code. Here's a pastebin link containing the code I tried to add:

http://pastebin.com/UT8mkpny

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
Valorous Hero ,
Feb 21, 2012 Feb 21, 2012

Copy link to clipboard

Copied

This question was posted in response to the following article

(Having absolutely nothing to do with your accurate post ... ) What is with the "Community Help" bot?  Can we no longer add comments to the online documentation?

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
Advocate ,
Feb 21, 2012 Feb 21, 2012

Copy link to clipboard

Copied

LATEST

Clearly this is incorrect you are right. I think what they intended to say was that only one can be processed on a given call to a function.

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