mIRC Home    About    Download    Register    News    Help

Topic Options
#264986 - 07/02/19 05:34 PM How do you do `isnotin?` or `! isin`?
beer Offline
Ameglian cow

Registered: 21/07/07
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!

Top
#264987 - 07/02/19 06:06 PM Re: How do you do `isnotin?` or `! isin`? [Re: beer]
maroon Offline
Hoopy frood

Registered: 12/01/04
Posts: 1145
the 3rd one should've worked.

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

Top
#264988 - 07/02/19 07:39 PM Re: How do you do `isnotin?` or `! isin`? [Re: maroon]
beer Offline
Ameglian cow

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

Top