Skip to content

Instantly share code, notes, and snippets.

Created March 23, 2016 17:55
Show Gist options
  • Save anonymous/86b42b56ef7348ec0d44 to your computer and use it in GitHub Desktop.
Save anonymous/86b42b56ef7348ec0d44 to your computer and use it in GitHub Desktop.
TryCF Gist
<cfscript>
data = [
["0600", 0],
["0600", 0],
["0615", 0],
["0615", 0],
["0630", 0],
["0630", 1]
];
// script version
for (foo in data) {
writeOutput(foo[1] & " " & foo[2] & "<br>");
}
</cfscript>
<!--- tag version --->
<cfoutput>
<cfloop array="#data#" index="foo">
#foo[1]# #foo[2]#<br>
</cfloop>
</cfoutput>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment