| View previous topic :: View next topic |
| Author |
Message |
Helpmeplz Guest
|
Posted: Sun Oct 18, 2009 8:16 pm Post subject: Expressions |
|
|
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
|
Posted: Sun Oct 18, 2009 8:18 pm Post subject: |
|
|
| and, where is the problem? |
|
| Back to top |
|
 |
jethrow
Joined: 24 May 2009 Posts: 722 Location: Iowa, USA
|
Posted: Sun Oct 18, 2009 8:22 pm Post subject: |
|
|
| 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 |
|
 |
Guest
|
Posted: Sun Oct 18, 2009 8:23 pm Post subject: |
|
|
| ok i'm stupid i didn't even try it |
|
| Back to top |
|
 |
|