How can I code the bellow condition in VBScript?
>= 0 [Red] Ex.: {0,1,2,3,4...}
Between -1 and -7 [Yellow] Ex.: {-1,-2,-3,-4,-5,-6,-7} ONLY
Greater or equal than -8 [Green] Ex.: {-8,-9,-10,-11...}
I have the following code, the Mydate is a valid date and the Red part is OK. The problem is the Yellow, I don't know if I can you a range like I did. It looks like is getting ignored and yellowing a greater range instead.
<%
IF DateDiff("d", MyDate, Now()) >= 0 THEN
%>
[Red]
<%
ELSEIF DateDiff("d", MyDate, Now()) =< -1 OR DateDiff("d", MyDate, Now()) >= -8 THEN
%>
[Yellow]
<%
ELSE
%>
[Green]
<%
END IF
%>