From: Daniel Lucraft Date: 2007-07-12T17:52:36+09:00 Subject: Re: exit from def? Bulhac Mihai wrote: > def bla > > > for i in 1 .. 5 > puts i > for j in 1 .. 5 > puts j > if j==4 > then > here i want to exit the "bla" def if j==4 > somenthing like break, but break just > interrupt > the 'j' for not the entire procedure; how > can i do > that? > end > > end > > > > end > > > tnx ... for j in 1..5 puts j return if j==4 end ... best, Dan -- Posted via http://www.ruby-forum.com/.