for(i = 1; i lte myQuery.recordCount; i = i + 1){
        if(myQuery.columnName[i] eq 1){
                myVar = 1;
        }
}

Like that?

Tim

-----Original Message-----
From: Steven Durette [mailto:[EMAIL PROTECTED]]
Sent: Thursday, November 21, 2002 3:24 PM
To: CF-Talk
Subject: cfscript equivalent for cfloop?


Is there an equivalent of  to be used with cfscript?

I have code similar to this:  

<cfloop query="myQuery">
    <cfif myQuery.myColName IS 1>
        <cfset myVar = 1>
    </cfif>
</cfloop>

This loop is surrounded on both sides by cfscript
blocks and I would like to make it all one cfscript
block.

Thanks,
Steve

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription: 
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to