In cfscript, yes. In tags, kinda.
<cfscript>
for (i = 0; i LT 10; i = i + 1) {
WriteOutput("Hella!");
}
</cfscript>
Note the difference when incrementing the counter.
For cfloop, see the docs at http://www.techfeed.net/cfQuickDocs/
Adrian
-----Original Message-----
From: John Barrett [mailto:[EMAIL PROTECTED]
Sent: 29 March 2006 10:41
To: CF-Newbie
Subject: for Loops in coldfusion?
Hi,
I am wondering are there for for loops in coldfusion? What type of loops are
including in coldfusion?
If I have a for loop in java(just the code part not all of the class):
for ( count = 1; count < 11; count++ )
System.out.print( count + " " );
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:15:1742
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/15
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:15
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.15
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54