Jump to content

waiwai

Members
  • Posts

    2
  • Joined

  • Last visited

waiwai's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. I have read the advantage of select....endselect from help. It said if you want to test a large number of conditions as it is generally easier to read than than large If/ElseIf type block. That's i agree
  2. 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
×
×
  • Create New...