If- Else If statement in vbs scripts

£可爱£侵袭症+ 提交于 2019-12-31 04:41:10

问题


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


来源:https://stackoverflow.com/questions/21838570/if-else-if-statement-in-vbs-scripts

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!