If- Else If statement in vbs scripts

2020-04-21 08:57发布

问题:

I need to know how to make an if - else if statement so that different messages will appear, based on the button (the answer) the user will press.

回答1:

You can use the If, ElseIf and End If directives.

 If i = 10 Then
     response.write("Just started...!")
 ElseIf i = 11 Then
     response.write("Hungry!")
 End If