Jump to content

Oops! I can't use an OR?


Recommended Posts

Howdy doody!

I just figured AutoIT could use the OR operand, but this function doesn't run! Or am I just doing it wrong? Oh also, I didn't search because I could just imagine how many results I would get looking up "or"... :)

IF @OSVersion = "WIN_VISTA" OR "WIN_2008" Then 
    $StartupPath = "c:\users\administrator\appdata\roaming\microsoft\windows\startm~1\programs\startup\"
ElseIf @OSVersion = "WIN_XP" Then 
    $StartupPath = "c:\docume~1\alluse~1\startm~1\programs\startup\"
Else 
    $StartupPath = "error"
EndIf

Oh, uh it works just fine if I take out the "OR WIN_2008" before the then.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...