Jump to content

Sky Slate Blueberry Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate
Photo

Help with IfInString



  • Please log in to reply
2 replies to this topic
snowmind
  • Members
  • 43 posts
  • Last active: Dec 19 2019 02:39 PM
  • Joined: 04 Oct 2012

:O

 

Hi everybody
Anyone knows how can I use more than a variable in this function?

 

 

Needle_1=red
Needle_2=blue

Clipboard=red

IfInString, Clipboard, %Needle_1% or %Needle_2%
{
Msgbox, Value is true
}
Else
{
MsgBox, No
}



boiler
  • Members
  • 252 posts
  • Last active: Nov 07 2015 09:39 PM
  • Joined: 04 Jun 2014
✓  Best Answer

Use the function version of that command:

if (InStr(Clipboard, Needle_1) or InStr(Clipboard, Needle_2))



snowmind
  • Members
  • 43 posts
  • Last active: Dec 19 2019 02:39 PM
  • Joined: 04 Oct 2012
  • Oh good suggestion! Tks a lot