Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1717068
  • 博文数量: 171
  • 博客积分: 11553
  • 博客等级: 上将
  • 技术积分: 3986
  • 用 户 组: 普通用户
  • 注册时间: 2006-05-25 20:28
文章分类

全部博文(171)

文章存档

2012年(2)

2011年(70)

2010年(9)

2009年(14)

2008年(76)

分类:

2008-05-10 19:09:38

文件:Condition.zip
大小:0KB
下载:下载

'1.If...Then...Else用法
Dim intType
intType = 10

If intType = 5 Then
    Wscript.echo "intType = 5"
ElseIf intType > 10 Then
    Wscript.echo "intType > 5"
Else
    Wscript.echo "intType < 5"
End If

'2.Select...EndSelect用法
'简化If...ElseIf...Else...End If的用法,可以使用字符串作为比较的参数
intType = 10
Select Case intType
    Case 10
        Wscript.echo "intType = 10"
    Case 20
        Wscript.echo "intType = 20"
    Case 30
        Wscript.echo "intType = 30"
    Case Else
        Wscript.echo "Other"
End Select

阅读(1053) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~