From: Dan Doel Date: 2003-09-04T16:28:40+09:00 Subject: Re: Any way to advance to an iterator prematurely? (1..30).each do |x| next if x == 15 puts x end Kurt Euler wrote: >All- > >In the code below, is there an way to put a condition just before that will cause the iterator to advance to the next x (the next line in control.txt) WITHOUT doing . I thinking something like "if field[0] != "test" read_next_line_in_file". I'd >rather not put in a giant if/end statement. > >