mIRC Home    About    Download    Register    News    Help

Print Thread
#261290 28/08/17 04:05 PM
Joined: May 2017
Posts: 9
N
nwmv Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: May 2017
Posts: 9
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? ♥

nwmv #261291 28/08/17 04:32 PM
Joined: Jan 2004
Posts: 2,127
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 2,127

if ( $istok(love dove,$2,32) )

maroon #261292 28/08/17 04:36 PM
Joined: May 2017
Posts: 9
N
nwmv Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
N
Joined: May 2017
Posts: 9
Thank you for the fast reply! Works wonders, appreciate it.


Link Copied to Clipboard