Flow Control 1.0 
by SoapForge

Provides extra flow control commands


* For Loop

  Uses the syntax /for start to stop do commands

  For example,
 
  for 1 to $nick($chan,0) do echo -a nicks in $chan - $!nick($chan,!n) 

  Would list all the nicks in the current channel to the active window.

  The !n is a internal variable for the current number the for loop is at.

  The exclaimation mark in $!nick is important - it stops mIRC from
  processing that identifer until the For loop runs it. You'll need to add 
  exclaimation marks to any identifers that use !n. 

  The code will attempt to guesstimate your intent by checking which
  of the start and stop numbers are larger. For example

  for $nick($chan,0) to 1 do echo -a nicks in $chan - $!nick($chan,!n) 

  would do exactly the same thing, but loop from the total number of 
  nicks down to one - i.e, in reverse order.

  The For command should not be called from the command line. Wierd
  things may result.

* Do loop

  Uses the syntax /do commands until condition

  For example

  do readsocket until $!sockbr == 0

  Again, this command should not be used from the command line.

* Notes

  Both of these two above commands need a workaround to use
  normal %variables inside the loop since the mIRC interpreter wil
  evaluate these beasties as soon as the line as processed.
  For example,

  do inc %wibble 1 until %wibble == 50

  won't work, while

  do inc % $+ wibble 1 until % $+ wibble == 50

  will. However, it's pretty ugly. I can't think of a situation where
  you'd actually need to use 'em inside a loop, so that's okay.
