For... Except ? !

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
josku_x
Addict
Addict
Posts: 997
Joined: Sat Sep 24, 2005 2:08 pm

For... Except ? !

Post by josku_x »

Hello!

I really want this feature to be added, that you can use an exception in a For loop..

Like if you do:

Code: Select all

For var=1 To 10 Except 5, 6
 Debug var
Next
It would output this in the debugger output:

Code: Select all

1
2
3
4
7
8
9
10
So, it would loop everything except the exceptions.

If this will be added I love PB more than more!
Thanks!