How is the string in %nick delimited? I mean what's the seperator?
If %nick is something like: john,jane,joe,jack, you could use if $istok(%nick,%test,44), in other words the nicks are seperated by a comma, so we use 44 ($chr(44)) as delimiter.
If the delimiter is a space, so like %nick john jane joe jack, you could use if $istok(%nick,%test,32), in other words the nicks are seperated by a space, so we use 32 ($chr(32)) as delimiter.
Using isin in this case would be inaccurate, because picture this:
%nick theone pooned slone
if (one isin %nicks) would trigger, but it's obvious there's no nickname called "one"
Greets