| View previous topic :: View next topic |
| Author |
Message |
[¤GoO¤]
Joined: 22 Feb 2005 Posts: 60 Location: Sweden
|
Posted: Tue Mar 08, 2005 5:02 pm Post subject: If statement |
|
|
Is it true that the If statement does not have any OR operator?
Like:
| Code: |
If Var1 = Something OR Var2 = Somethingelse
{
...
}
|
 _________________ "Make everything as simple as possible, but not simpler."
- Albert Einstein (1879-1955) |
|
| Back to top |
|
 |
jonny
Joined: 13 Nov 2004 Posts: 3004 Location: Minnesota
|
Posted: Tue Mar 08, 2005 5:03 pm Post subject: |
|
|
You have to use parantheses for expressions.
| Code: | If (Var1 = "Something" OR Var2 = "Somethingelse")
{
...
} |
|
|
| Back to top |
|
 |
[¤GoO¤]
Joined: 22 Feb 2005 Posts: 60 Location: Sweden
|
Posted: Tue Mar 08, 2005 5:10 pm Post subject: |
|
|
I just tested that...
So obvious!
Thanks!
Stupid me, clever AHK  _________________ "Make everything as simple as possible, but not simpler."
- Albert Einstein (1879-1955) |
|
| Back to top |
|
 |
|