Created
March 31, 2016 10:25
-
-
Save anonymous/a6d123332b7bce30fd53a1beb5de90b8 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
<cfset arrayOfData = ["apple","banana","pear","grape","turtle","gorilla","glasses"]> | |
<cfoutput> | |
<cfloop index="loopIndex" from="1" to="#arrayOfData.len()#"> | |
#(loopIndex MOD 4 EQ 1) ? '<div class="row">' : ''# | |
<div class="col-sm-3"> | |
<!---Col Content Here---> | |
#loopIndex# | |
</div> | |
#(loopIndex MOD 4 EQ 0 OR loopIndex EQ arrayOfData.len()) ? '</div>' : ''# | |
</cfloop> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment