asp 经典中的 Else if 语句不起作用

Else if statement in asp classic not working

我无法让它工作。我拔头发的时候有没有人有什么想法。

if V30 = 1 then
V40 = "Condition met"
else if V30 = 2 then
V40 = "Condition not met"
else
V40 = ""
end if

试试这个,它会起作用

If V30 = 1 Then
V40 = "Condition met"
ElseIf V30 = 2 Then
V40 = "Condition not met"
Else
V40 = ""
End If