cfscript - for loop in script
cfscriptForLoop.cfm
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>cfscript tag: How to use for loop in cfscript</title>
</head>
<body>
<h2 style="color:DodgerBlue; font-style:italic">cfscript example: for loop</h2>
<hr width="350" align="left" color="PaleVioletRed" />
<h4 style="color:DarkBlue;">
<cfscript>
for(i=1; i LTE 10; i++){
WriteOutput("Current Position: #i# <br />") ;
}
</cfscript>
</h4>
</body>
</html>