From: Kurt Euler Date: 2003-09-05T14:28:02+09:00 Subject: Re: Any way to advance to an iterator prematurely? Thanks Dan. Works fine! -Kurt Date: Thu, 4 Sep 2003 16:28:40 +0900 References: 81087 In-reply-to: 81087 (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. > >