Skip to content

Instantly share code, notes, and snippets.

@huguogang
Created February 23, 2015 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save huguogang/653cd68ea489a6e515ea to your computer and use it in GitHub Desktop.
Save huguogang/653cd68ea489a6e515ea to your computer and use it in GitHub Desktop.
CFScript Problem
<cfscript>
private struct function test() {
if(1 == 1) {
if(1 == 0) {
writeOutput("1==0");
};
writeOutput("true");
return {data = 1};
}
writeOutput("false");
return {data = 2};
}
writeDump(test());
</cfscript>
@huguogang
Copy link
Author

The semicolon at the end of "if" block is causing problem in CF 9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment