摘要:
1.if 逻辑结构 if/then 结构是最简单的条件测试,如果条件为真,则执行程序的一行或者多行,如果条件为假,则什么都不执行,示例: if 1>2 then null; end if ; if not 12 then null; else null; end if ; if /then /elsif ,在这中结构,在条件为false 是可以对另一个条件测试,因此,不用嵌套if语句也可以对多个条件进行测试 示例; if 1>2 then null; elsif 1>3 null; else null; end if ;备注;每一个if语句块必须至少有一行程序代码,如果不希望 阅读全文
posted @ 2013-09-21 22:33
sulin
阅读(391)
评论(0)
推荐(0)

浙公网安备 33010602011771号