Created
December 8, 2014 12:09
-
-
Save adamcameron/09da2b08325cd0bcecf7 to your computer and use it in GitHub Desktop.
For Kev. I would use local scope explicitly if I could not VAR-and-use in the same statement, eg:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
var text = ""; | |
savecontent variable="text" { | |
// stuff here | |
} | |
writeOutput(text); | |
</cfscript> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
savecontent variable="local.text" { | |
// stuff here | |
} | |
writeOutput(text); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Stop calling my wife
-Kev