Try using "last" instead of "break".

----- Original Message -----
From: "Purshottam Chandak" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, December 05, 2001 7:19 AM
Subject: Loop


> i was trying to work it out, for any kind of array.
> the following pseudo code doesn't seem to work
>
> for(.....) {
> if(...) {
> ..........
> }
> else {
> ........
> break;
> }
> }
>
> the break statement is not working. Even when it comes into  the else
part,
> it doesn't break the for loop.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to