 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
Nemroth Guest
|
Posted: Mon Jun 21, 2004 9:48 pm Post subject: AND and OR in IfInString & IfNotInString commands |
|
|
Hi everybody,
Is it possible, in the IfInString and IfNotInString commands, to add AND and OR ?
so it will give :
| Code: | IfInString, var, SearchString OR OtherSearchString
IfInString, var, SearchString AND OtherSearchString
IfNotInString, var, SearchString OR OtherSearchString
IfNotInString, var, SearchString AND OtherSearchString |
Thanks for your answer. |
|
| Back to top |
|
 |
Chris Site Admin
Joined: 02 Mar 2004 Posts: 10464
|
Posted: Mon Jun 21, 2004 10:16 pm Post subject: |
|
|
It can't be done the way you describe because it's ambiguous. However, you probably already know that you can AND by nesting more than one command:
IfInString, var, SearchString, IfInString, var, OtherSearchString, ...
There is also a related item on the to-do list:
if var [not] in item1,item2,item3
Perhaps the above can be enhanced by optionally allowing any of the listed items to be "contained within" rather than an exact match. Thanks for the idea. |
|
| Back to top |
|
 |
Nemroth Guest
|
Posted: Mon Jun 21, 2004 10:39 pm Post subject: |
|
|
Appologies,
I didn't "realise" the possiblity to manage AND by nesting commands....
I'm OK with your analysis on the comand
| Quote: | | if var [not] in item1,item2,item3 |
of the to do list.. It can be a way to have an OR facility |
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|