mIRC Homepage
Posted By: nwmv Match Text Help - 28/08/17 04:05 PM
Hey all, need help with something that is probably VERY basic.

I'm trying to copy one of multiple specific word, with the specific word being the second word.

I've tried if ($2 == love) and that works, but when I start adding multiple words it breaks and copies anything that is $2. if ($2 == love || dove)
I've also tried if (love || dove isin $1-) but that doesn't work either. It breaks the same way the other one does.

I'd rather it be very specific to $2 == as I don't want it to false trigger because it finds 'love' or one of the other words in $1-

if ($2 == love) || ($2 == dove) works, but there has to be a more efficient way, right?

Can someone help me out with this? ♥
Posted By: maroon Re: Match Text Help - 28/08/17 04:32 PM

if ( $istok(love dove,$2,32) )
Posted By: nwmv Re: Match Text Help - 28/08/17 04:36 PM
Thank you for the fast reply! Works wonders, appreciate it.
© mIRC Discussion Forums