mIRC Home    About    Download    Register    News    Help

Print Thread
#21270 28/04/03 03:35 AM
Joined: Apr 2003
Posts: 2
I
iswm Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
I
Joined: Apr 2003
Posts: 2
I think mIRC should support foor loops. I think they are pretty slick, and cleaner then having to use while loop all the time.

For example, in c/c++:

for (int i = 0; i < 5; i++)
{
bleh;
}

Well in mIRC:

for (int %i = 0,%i < 5,inc %i) { bleh }



@#Scripting DALnet
#21271 28/04/03 03:44 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Already suggested here and here. Please Search before you post.

#21272 28/04/03 04:41 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
for (int %i = 0,%i < 5,inc %i) { bleh }

Most likely this would be

for (var %i = 0,%i < 5,inc %i) { bleh }

I also like the idea of for loops, and yes it has been suggested numerous times, but I've yet to hear Khaled respond to any of them smile


Link Copied to Clipboard