mIRC Home    About    Download    Register    News    Help

Print Thread
How do you do `isnotin?` or `! isin`? #264986
07/02/19 05:34 PM
07/02/19 05:34 PM
Joined: Jul 2007
Posts: 40
B
beer Offline OP
Ameglian cow
beer  Offline OP
Ameglian cow
B

Joined: Jul 2007
Posts: 40
Hi. I can do:

if (%somevar isin %listvar)

but how do you do a `isnotin` instead of isin? None of these worked:

if !(..)
if ! (..)
if (.. !isin ..)
if (.. ! isin ..)

Thanks in advance for the help!

Re: How do you do `isnotin?` or `! isin`? [Re: beer] #264987
07/02/19 06:06 PM
07/02/19 06:06 PM
Joined: Jan 2004
Posts: 1,158
maroon Offline
Hoopy frood
maroon  Offline
Hoopy frood

Joined: Jan 2004
Posts: 1,158
the 3rd one should've worked.

//if (abc !isin abacd) echo -a true $v1 vs $v2 | else echo -a false $v1 vs $v2

Re: How do you do `isnotin?` or `! isin`? [Re: maroon] #264988
07/02/19 07:39 PM
07/02/19 07:39 PM
Joined: Jul 2007
Posts: 40
B
beer Offline OP
Ameglian cow
beer  Offline OP
Ameglian cow
B

Joined: Jul 2007
Posts: 40
Tried the 3rd one again and now it's working so I must have had a typo or something before. Thanks maroon!