在VB里面的If条件语句,如果要在If后面加两个条件,然后才是结果(Then),该怎么写啊?

2025-02-20 07:07:55
推荐回答(3个)
回答1:

if a=b and c=d then 两者都成立时then
if a=b or c=d then 两者有一个成立就then
当有很多个条件同时成立再then时,之间用and连接
当很多条件有一个成立就then时,之间用or连接

回答2:

满足两个条件用 if .... and ...then
满足其中一个 if .... or ...then

回答3:

用 and 或者 or 连接各个条件就可以,了!