gooshie commented on a Page, Multi-Server Management and Interface  -  Oct 29, 2009

While loops such as:

    var %x = 1
    while (%x <= $numtok($readini(nets.ini,channels,%name),32)) {
      did -a netsadd 7 $gettok($readini(nets.ini,channels,%name),%x,32)
      inc %x
    }

Can be written as:

    var %x = 1
    while $gettok($readini(nets.ini,channels,%name),%x,32) {
      did -a netsadd 7 $v1
      inc %x
    }

Basically any time you find yourself doing a
while (%x <= $ident(0)) looking at the total you
can often do something like the above and use
the $ifmatch or the even shorter $v1 identifier

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.