Nice description of it, and example. But I know a few people would prefer "smaller" code, even though it could kill readability.. Anyways.
alias Loop { var %i = 1 | while (%i < 1000) { echo -a Looped #= %i | inc %i } }
I decided to add to this, to possibly show more (or a different) way loops could work. It's a fun little mass shoot thing, but I'd suggest only doing it in your own channel.
alias mshoot { var %x = 1 | while (%x <= 5) { describe $active shoots $nick(#,$r(1,$nick(#,0))) dealing $r(1,1000) damage! | inc %x } }