var %n network network1 networkN ,%c #chan,%a 1 while ($scon(%a).network != $null) { if ($istok(%n,$v1,32)) { scon %a msg %c something } inc %a }