求助,vb中if如何在5个条件中满足任意三个条件,然后then。。。最后5个条件都满足,then。。。如果if不行,其他的可以么
求助,vb中if如何在5个条件中满足任意三个条件,然后then。。。最后5个条件都满足,then。。。如果if不行,其他的可以么
If A = "条件1" And B = "条件2" And C = "条件3" And D = "条件4" And E = "条件5" Then MsgBox "满足了五个条件!" ElseIf A = "条件1" And B = "条件2" And C = "条件3" And D = "条件4" Then MsgBox "满足了四个条件!" ElseIf A = "条件1" And B = "条件2" And C = "条件3" Then MsgBox "满足了三个条件!" Else MsgBox "三个条件都满足不了!" End If