Oh yeah I like it!

Adam Wayne Lehman
Web Systems Developer
Johns Hopkins Bloomberg School of Public Health
Distance Education Division


-----Original Message-----
From: Timothy Heald [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, November 21, 2002 3:29 PM
To: CF-Talk
Subject: RE: cfscript equivalent for cfloop?

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
Signup for the Fusion Authority news alert and keep up with the latest news in 
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm

Reply via email to