Jump to content

Does Autoit support IF .... OR?


GregP
 Share

Recommended Posts

I haven't found anything in the documentation .... was wondering if Autoit supports the IF OR conditional.

IE.

$VAR1 = blah blah

$VAR2 = blah blah

If $VAR1 = "blah blah" OR $VAR2 = "blah blah"  Then

Thanks,

Greg :whistle:

<{POST_SNAPBACK}>

Yep.

PS. The easiest way to search the doc is use Google to search only the www.autoitscript.com domain and type in your keywords.

Link to comment
Share on other sites

  • Moderators

Actually:

If $data = 1 Or $data = 2 Then

;Do Something

EndIf

Is the correct syntax

EDIT: Not a Burn before B3TA gets to this post... just FYI to save your from troubles in the future.

Edited by ronsrules

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

Link to comment
Share on other sites

Actually:

If $data = 1 Or $data = 2 Then

;Do Something

EndIf

Is the correct syntax

EDIT:  Not a Burn before B3TA gets to this post... just FYI to save your from troubles in the future.

<{POST_SNAPBACK}>

BURNNNNNNNNNN

:is that my new job now going to different threads saying burn?

Edited by B3TA_SCR1PT3R

[right][font="Courier New"]...Run these streets all day, I can sleep when I die.[/font] [/right]

Link to comment
Share on other sites

  • Moderators

BURNNNNNNNNNN

<{POST_SNAPBACK}>

You know B3TA, I wouldn't be surprised if 25% of your posts are waisted space like the above.

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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...