Thanks- I knew it was super easy -----Original Message----- From: Craig Dudley [mailto:[EMAIL PROTECTED]] Sent: Thursday, December 12, 2002 8:38 AM To: CF-Talk Subject: RE: Wuick question: if odd/if even
<cfif year mod 2 eq 1>ODD<cfelse>EVEN</cfif> -----Original Message----- From: Janine Jakim [mailto:[EMAIL PROTECTED]] Sent: 12 December 2002 13:32 To: CF-Talk Subject: Wuick question: if odd/if even I Know this is easy....Iwant a different background depending on the year chosen by the user- basically if it ends as an odd number make background blue if year ends with even number make background green. Is there a better way than saying <cif (Right(#Year#, 1) EQ 1) or (Right(#Year#, 1) EQ 3) or (Right(#Year#, 1) EQ 5) or (Right(#Year#, 7) EQ 1)etc..... Thanks, j ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| 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 Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm

