<cfif Year MOD 2>

-----Original Message-----
From: Janine Jakim [mailto:[EMAIL PROTECTED]] 
Sent: donderdag 12 december 2002 14: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
Get the mailserver that powers this list at http://www.coolfusion.com

Reply via email to