yeap, here u go

if (year mod 2)
        year even
else
        year odd

you can use IIF like this too, but the above is easier to read...

WG


> -----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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

Reply via email to