📄 17636.html
字号:
<html> <head> <title>Re: 多个If有无较简单之写法?</title> </head> <body bgcolor="#FFFFFF" vlink="#808080"> <center> <h1>Re: 多个If有无较简单之写法?</h1> </center><hr size=7 width=75%><hr size=7 width=75%><p>Posted by <a href="mailto:jtomail@tomail.com.tw">j</a> on August 21, 1999 at 02:31:04:<p>In Reply to: <a href="17634.html">多个If有无较简单之写法?</a> posted by 新手 on August 21, 1999 at 01:00:49:<p>: 若有多个条件要判断如:<br>: If A=True then <br>: If B=False then<br>: If C >10 then<br>: If D=True then<br>: Do Something<br>: End If<br>: End If<br>: End If<br>: End If<br>: 请问有无较简单之写法?<p>利用 And 逻辑运算子<p>If ( A = True And B = False) And ( C > 10 And D = True ) Then<br>Do Something<br>End If<p><br><br><hr size=7 width=75%><p><a name="followups">Follow Ups:</a><br><ul><!--insert: 17636--><!--top: 17657--><li><a href="17657.html">旧的写法比较好</a> <b>Arthur</b> <i>13:36:05 8/21/99</i>(<!--responses: 17657-->1)<ul><!--insert: 17657--><!--top: 17667--><li><a href="17667.html">谢谢!我也没想到[如果 A=False 时, 其他判断条件会检查吗?]</a> <b>新手</b> <i>18:39:02 8/21/99</i>(<!--responses: 17667-->0)<ul><!--insert: 17667--></ul><!--end: 17667--></ul><!--end: 17657--></ul><!--end: 17636--><br><hr size=7 width=75%><p></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -