mIRC Home    About    Download    Register    News    Help

Print Thread
#105925 22/12/04 06:32 AM
Joined: Jan 2004
Posts: 133
W
Vogon poet
OP Offline
Vogon poet
W
Joined: Jan 2004
Posts: 133
if (%text isin %Nick) ????

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

Any Suggestions ?

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


Gone.

Link Copied to Clipboard