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
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:
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
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?
Copy link to clipboard
Copied
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.