Jump to content
Sign in to follow this  

multiple "if" statements with one "then"

Recommended Posts


OK! so, I am working on a small easy starter autoit program, but am not used to programming in autoit... the logic seems to be a bit different than what I am used to. anyways, heres my dilema. I have pixel search running for 3 rectangular areas, and if they all have the containing color, then it will mouse click in one of those pixel search areas.

the code resembles this:




if isarray$a=1


if isarray$b=1


if isarray$c=1



obviously this isn't the exact syntax, but I don't have access to my file right now... I just need to understand the syntax of autoit to know how to have (if in the event of 3 exact things being true) one solution... hopefully someone can help... I know it is probably very hard to understand what I mean... if you need any clarification, please let me know.

Thanks for your time.

Share this post

Link to post
Share on other sites

try something like


if isarray($a) AND isarray($B) AND isarray($c) then
thanks for the speedy reply, but i think i got it... i did something along the lines of...


if isarray($a) then


if isarray($:)....







I think it is performing correctly... for a bit there i had to think if it was continuing through the loops even if the "if" wasn't met, but I'm pretty sure it runs correctly... thanks again for the help... topic may be closed ;D

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