#include <ButtonConstants.au3>
#include <EditConstants.au3>
#include <GUIConstantsEx.au3>
#include <StaticConstants.au3>
#include <WindowsConstants.au3>
#Region ### START Koda GUI section ### Form=
$Form1 = GUICreate("Form1", 278, 438, 192, 124)
$Input1 = GUICtrlCreateInput("", 120, 56, 121, 21)
$Input2 = GUICtrlCreateInput("", 120, 96, 121, 21)
$Input3 = GUICtrlCreateInput("", 120, 136, 121, 21)
$Input4 = GUICtrlCreateInput("", 120, 176, 121, 21)
$Input5 = GUICtrlCreateInput("", 120, 216, 121, 21)
$Input6 = GUICtrlCreateInput("", 112, 256, 121, 21)
$Button1 = GUICtrlCreateButton("查询", 64, 304, 155, 49)
$Label1 = GUICtrlCreateLabel("条件1", 56, 56, 36, 17)
$Label2 = GUICtrlCreateLabel("条件2", 56, 96, 36, 17)
$Label3 = GUICtrlCreateLabel("条件3", 56, 136, 36, 17)
$Label4 = GUICtrlCreateLabel("条件4", 56, 184, 36, 17)
$Label5 = GUICtrlCreateLabel("条件5", 56, 216, 36, 17)
$Label6 = GUICtrlCreateLabel("条件6", 56, 256, 36, 17)
$Group1 = GUICtrlCreateGroup("多重判断", 32, 40, 233, 169)
GUICtrlCreateGroup("", -99, -99, 1, 1)
GUISetState(@SW_SHOW)
#EndRegion ### END Koda GUI section ###
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
Case $Button1
panduan()
EndSwitch
WEnd
Func panduan()
$a=GUICtrlRead($Input1)
$b=GUICtrlRead($Input2)
$c=GUICtrlRead($Input3)
$d=GUICtrlRead($Input4)
$e=GUICtrlRead($Input5)
$f=GUICtrlRead($Input6)
Select
Case $a<>"" And $B<>""
MsgBox("","","第一二条件不为空")
Case $a<>"" And $c<>""
MsgBox("","","第一三条件不为空")
Case $a<>"" And $d<>""
MsgBox("","","第一四不为空")
Case $b<>"" And $c<>""
MsgBox("","","第二三不为空")
Case $b<>"" And $d<>""
MsgBox("","","第二四不为空")
Case $C<>"" And $d<>""
MsgBox("","","第三四不为空")
EndSelect
Select
Case $a<>""
MsgBox("","","第一不为空")
Case $b<>""
MsgBox("","","第二不为空")
Case $C<>""
MsgBox("","","第三不为空")
Case $D<>""
MsgBox("","","第四不为空")
Case $a<>""
MsgBox("","","第五不为空")
Case $F<>""
MsgBox("","","第六不为空")
EndSelect
EndFunc
以上是代码,新手求助请教大哥们,目的是当输入一个条件的时候,运行单条件判断。输入两个条件的时候,运行多条件判断。但是现在这代码运行结果是单条件判断跟多条件判断同时运行。。。萌新求指教,或者有更好的方法,求大神给个思路,小弟比较傻。。。