Can any one please tell me whats wrong in this while loop. Whenever I run this code in ASP I get a compilation error '800a0400' where WEND is situated. 'Expected Statement'
I thing I am forgetting something, can anyone inform me what it is? Thanks in advance.

I = 1
SUM = 0

WHILE (I < 11)
AI = "A" & I
IF (RS(AI) = "1") THEN
SUM = SUM + 10
ELSE IF (RS(AI) = "2") THEN
SUM = SUM + 5
ELSE
SUM = SUM + 2.5
END IF
I = I + 1
WEND