vbs脚本中的If- Else If语句 [英] If- Else If statement in vbs scripts

查看:913
本文介绍了vbs脚本中的If- Else If语句的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要知道如何制作if-else if语句,以便根据用户将要按下的按钮(答案)显示不同的消息.

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.

推荐答案

您可以使用IfElseIfEnd If指令.

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

这篇关于vbs脚本中的If- Else If语句的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆