Jump to content
Sign in to follow this  
GregP

Does Autoit support IF .... OR?

Recommended Posts

GregP

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:

Share this post


Link to post
Share on other sites
Arrrghmatey

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.

Share this post


Link to post
Share on other sites
GregP

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.

<{POST_SNAPBACK}>

Thanks!!!

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
B3TA_SCR1PT3R

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]

Share this post


Link to post
Share on other sites
SmOke_N

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.

Share this post


Link to post
Share on other sites
B3TA_SCR1PT3R

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

<{POST_SNAPBACK}>

BURNNNNNNNNNNN X2

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

Share this post


Link to post
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
Sign in to follow this  

×