exit works to get you out of the script.
----- Original Message ----- From: "Ahmed Moustafa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, December 05, 2001 7:32 AM Subject: Re: Loop > 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] _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]