Skip to content

Instantly share code, notes, and snippets.

Created March 31, 2016 10:25
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 anonymous/a6d123332b7bce30fd53a1beb5de90b8 to your computer and use it in GitHub Desktop.
Save anonymous/a6d123332b7bce30fd53a1beb5de90b8 to your computer and use it in GitHub Desktop.
TryCF Gist
<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