I am assuming your cfoutputting a cfquery in this example.
<cfif currentRow MOD 2>
<tr class or bgcolor goes here> some query vars here </tr>
<cfelse>
<tr class or bgcolor goes here> blank.... </tr>
</cfif>
The first iteration, currentRow will equal 1, and 1/2 leaves a remainder of
1, which is interpreted as TRUE.
Basically odd rows will execute first part of if statement and even rows the
second. )
hope that helps,
John Ensign
Programmer
t: 303.839.5292
The Binary Lab inc.
_ _ _ _ _
/_///| //_//_|\/_ / /_/ /_/ Denver, CO
/_/// |// // | / /_ / / /_/ www.thebinarylab.com
-----Original Message-----
From: Joshua Tipton [mailto:[EMAIL PROTECTED]]
Sent: Saturday, July 13, 2002 4:19 PM
To: CF-Talk
Subject: skip rows
On my page layout I would like every other row in the table to be a
blank row. Does anyone have any idea how to do this. I am working with
mod 2 trying to figure it out.
Joshua Tipton
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists