Wiki

Clone wiki

Lucee / Lucee_5_Loop_Times

Home | Lucee 5

#Loop - times# Lucee 5 also extends the popular cfloop tag with a new way to do a very simple and fast loop. If you have simply to loop something a certain number of times and you do not require an index, this is the fastest way to do it.

Example:

#!coldfusion
<cfloop times="5"> 
    Hi There
</cfloop>

<cfscript>
  loop times="5" {
     echo("Hi There");
  }
</cfscript>

Updated