<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
Your ad could be here. Monies from ads go to support these lists and provide more 
resources for the community. http://www.fusionauthority.com/ads.cfm

Reply via email to