If mIRC scripting supported for(), I would use it instead of while(). It is extremely easy to drop the inc %x or dec %x near the bottom of the loop. Althoufh I could offset %x before entering while() to allow using inc %x or dec %x at the top of the lop, this is not alway practical.