if Coverday < 0 then 
        bgcday="red" and days0=days0+1 
else
        if CoverDay > 0 and CoverDay < 45 then 
                bgcday="#2068c0" and days045=days045+1 
        else 
                if CoverDay >= 45 and CoverDay =< 60 then 
                        bgcday="green" and days4560=days4560+1 

                        else 

                                if CoverDay > 60 then 
                                        bgcday="yellow" and days60=days60+1 
                                end if

Here I Used A Lil bit of formatin on that code for you. I think you Are
missing a whole array of end if s 

cheers


Kuminda Chandimith
Sr. Technical Consultant
Ducont.com FZ-LLC
Tel:  + 971-4-3913000 Ext 237
Fax: +971-4-3913001
http://www.ducont.com



-----Original Message-----
From: Tsiris Alexandros [mailto:[EMAIL PROTECTED]]
Sent: 02 October 2002 11:06
To: ActiveServerPages
Subject: RE: Lost in Time: If ... then



> here is the original code, and it doesnt work:
> 
> if Coverday < 0 then bgcday="red" and days0=days0+1 else
> if CoverDay > 0 and CoverDay < 45 then bgcday="#2068c0" and
> days045=days045+1 else 
> if CoverDay >= 45 and CoverDay =< 60 then bgcday="green" and
> days4560=days4560+1 else 
> if CoverDay > 60 then bgcday="yellow" and days60=days60+1 end if
> 
> any suggestion


so you have used AND successfully?

which part of the code is the problem in?
 

---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to