How do you do `isnotin?` or `! isin`?

Posted by: beer

How do you do `isnotin?` or `! isin`? - 07/02/19 05:34 PM

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!
Posted by: maroon

Re: How do you do `isnotin?` or `! isin`? - 07/02/19 06:06 PM

the 3rd one should've worked.

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

Re: How do you do `isnotin?` or `! isin`? - 07/02/19 07:39 PM

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