Skip to content

Instantly share code, notes, and snippets.

@adamcameron
Created September 30, 2022 19:07
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 adamcameron/9d9a6f08ca54e999e429eacae1a0a1de to your computer and use it in GitHub Desktop.
Save adamcameron/9d9a6f08ca54e999e429eacae1a0a1de to your computer and use it in GitHub Desktop.
Tags
[#arguments.x#] [2]
Script
[#arguments.x#] [#arguments.x#]
Tags<br>
<cffunction name="f1">
[#arguments.x#]
</cffunction>
<cffunction name="g1" output="true">
[#arguments.x#]
</cffunction>
<cffunction name="h1" output="false">
[arguments.x#]
</cffunction>
<cfset f1(x=1)>
<cfset g1(x=2)>
<cfset h1(x=3)>
<hr>
Script<br>
<cfscript>
function f2(x){
```
[#arguments.x#]
```
}
function g2(x) output=true {
```
[#arguments.x#]
```
}
function h2(x) output=false {
```
[#arguments.x#]
```
}
f2(x=1)
g2(x=2)
h2(x=3)
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment