I always like to go one step more. I name my rowclasses "class0" and "class1" Then you don't need a <CFIF>
<cfset rowclass="class" & currentrow mod 2> -----Original Message----- From: Eric Dawson [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 03, 2003 1:52 PM To: CF-Talk Subject: Re: code snippets <cfoutput query="someQ"> <cfif currentrow mod 2 is 0><cfset rowclass="even"><cfelse><cfset rowclass="odd"></cfif> <tr class="#rowclass#"><td>data</td></tr> </cfoutput> From: "Robert Orlini" <[EMAIL PROTECTED]> Reply-To: [EMAIL PROTECTED] To: CF-Talk <[EMAIL PROTECTED]> Subject: code snippets Date: Wed, 3 Sep 2003 15:56:25 -0400 I know this has probably been asked numerous times, but I wonder if anyone has the CF code that alternates color on rows in a table? Also, does anyone have the CF(?) code that checks/verifies whether a credit card number is entered correctly? Thanks as usual. Robert O. HWW ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/lists.cfm?link=t:4 Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4 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

