AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Expressions

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
Helpmeplz
Guest





PostPosted: Sun Oct 18, 2009 8:16 pm    Post subject: Expressions Reply with quote

I want something like
Code:
if (Var1=Cond1 or Cond2 and Var2=Cond1 or Cond2)
    Do something

Anyway to do this
Back to top
Guesty Wind
Guest





PostPosted: Sun Oct 18, 2009 8:18 pm    Post subject: Reply with quote

and, where is the problem?
Back to top
jethrow



Joined: 24 May 2009
Posts: 722
Location: Iowa, USA

PostPosted: Sun Oct 18, 2009 8:22 pm    Post subject: Reply with quote

Code:
if (Var1=Cond1 or Var1=Cond2) and (Var2=Cond1 or Var2=Cond2)
    Do something


or if the Conditions are numbers (requires AHK_L):
Code:
Var1:=5, Var2:=6
if(Var1~="(5|2)" && Var2~="(6|1)")
    Do something

_________________
AHKL, COM_L,Webpage Controls,Donate to AHK


Last edited by jethrow on Sun Oct 18, 2009 8:46 pm; edited 1 time in total
Back to top
View user's profile Send private message
Guest






PostPosted: Sun Oct 18, 2009 8:23 pm    Post subject: Reply with quote

ok i'm stupid i didn't even try it
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group