Originally Posted By: BuxXray
Originally Posted By: pball
You can use is token.

if ($istok(nick1 nick2 nicketc,$nick,32)) {

Do I need to use commas or nah?

I mean
Code:
if ($istok(John, Bob, Jack,$nick32))?

I don't get why you only used comma in nicketc part and $nick,32

Thanks


The $istok identifier has 3 arguments, which are separated by commas. Everything before the 1st comma is the text to check. The item between the commas is the text to find. The item after the 2nd comma is the ASCII code of the delimiter of the tokens in the 1st part. In this example 32, or a space. The delimiter can be any valid unique character. Using a comma in a literal string will cause an error, as the identifier doesn't know what to do with more than 2. You can use commas in a variable if you really want to:

Code:
var %toks = User1,User2,User3,UserN
if ($istok(%toks,$nick,44))


This will also work...
Code:
if ($istok(User1*User2*User3*UserN,$nick,42))