Hello I am just learning the autoit. When i look up the help file with select....endselect function. But i unable to distinguish what is the different with if.....endif I have writen the two syntax respectively. But the result is the same, anyone give me some comments. Select...... Endselect $var=1 $var2="test" Select Case $var = 1 MsgBox(0, "", "第一个条件成立") Case $var2 = "test" MsgBox(0, "", "第二个条件成立") Case Else MsgBox(0, "", "所有条件都不成立!") EndSelect IF.....Endif $var=1 $var2="test" If $var=1 then MsgBox(0, "", "第一个条件成立") elseif $var2="test" then MsgBox(0, "", "第二个条件成立") else MsgBox(0, "", "所有条件都不成立!") Endif