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 

AND and OR in IfInString & IfNotInString commands

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
Nemroth
Guest





PostPosted: Mon Jun 21, 2004 9:48 pm    Post subject: AND and OR in IfInString & IfNotInString commands Reply with quote

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

PostPosted: Mon Jun 21, 2004 10:16 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
Nemroth
Guest





PostPosted: Mon Jun 21, 2004 10:39 pm    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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