Jump to content
Sign in to follow this  
GodForsakenSoul

if this AND this, do that

Recommended Posts

GodForsakenSoul

i have come up with a 'genius' plan to do something i want. however, there's a small problem: i need to use IF to check a few things and if they all are correct, it would do something. like in c++

----------------and------------and

-----------------v---------------v

if((statement)&&(statement)&&(statement))

{ do whatever }

the help file doesn't say i can or can not do such a thing. help?

edit: i do hope it exists because i want to do alot of

if this and this and this and this....

Edited by GodForsakenSoul

Share this post


Link to post
Share on other sites
SmOke_N

i have come up with a 'genius' plan to do something i want. however, there's a small problem: i need to use IF to check a few things and if they all are correct, it would do something. like in c++

----------------and------------and

-----------------v---------------v

if((statement)&&(statement)&&(statement))

{ do whatever }

the help file doesn't say i can or can not do such a thing. help?

If conditon = conditiontomeet And condition1 = conditionnottomeet Then

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
Siao

the help file doesn't say i can or can not do such a thing. help?

Wow, this means I got a special edition of helpfile somehow.

Because in If...Then reference it clearly states:

The expression can contain the boolean operators of AND, OR, and NOT as well as the logical operators <, <=, >, >=, =, ==, and <> grouped with parentheses as needed.

Now I only need to find out how I got that special helpfile, so I can share it with others...


"be smart, drink your wine"

Share this post


Link to post
Share on other sites
Squirrely1

the help file doesn't say...

Look in the help file under: AutoIt > Language Reference > Operators

And look at example code all over the forums.


Das Häschen benutzt Radar

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.