mIRC Home    About    Download    Register    News    Help

Print Thread
#105925 22/12/04 06:32 AM
W
WarlockW
WarlockW
W
if (%text isin %Nick) ????

Need To Compair Data From One %var to a different %var
For isin

Any Suggestions ?

Joined: Feb 2004
Posts: 2,013
F
Hoopy frood
Offline
Hoopy frood
F
Joined: Feb 2004
Posts: 2,013
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


Link Copied to Clipboard