Sure you can use IIF, but I always find it a bit hard to read. Here is a simple example that assumes you are inside a query loop. Change currentRow to something else if you are in cfloop and are using a loop counter.
<tr <cfif currentRow mod 2>class="rowA"<cfelse>class="rowB"</cfif> > Change the classes to bgcolor if you don't want to use CSS. On Mon, 31 Jan 2005 12:51:10 -0800 (PST), Discover Antartica <[EMAIL PROTECTED]> wrote: > Hello, > > I would like to display the output in such a way that the rows display in two > colors alternatively. I am doing this to make the output more readable. Is > there a way to do it? I think you use IIF function? but I cant remember > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Discover CFTicket - The leading ColdFusion Help Desk and Trouble Ticket application http://www.houseoffusion.com/banners/view.cfm?bannerid=48 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:192431 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

