Created
March 23, 2016 17:55
-
-
Save anonymous/86b42b56ef7348ec0d44 to your computer and use it in GitHub Desktop.
TryCF Gist
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> | |
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