From: Robert Klemme Date: 2009-11-24T21:33:33+09:00 Subject: Re: How i can jump from one line to another line 2009/11/23 Sajjad Seyyed : > How i can jump from one line to another line ?? There is no GOTO in Ruby - fortunately. If this is what you are asking. > for exaple i have 7 line codes like here: > > line 1: code > line 2: code > line 3: code > line 4: code > line 5: code > line 6: code > line 7: code > > no i wanna know when line 3 will be runing how after there my propmt > jumping to line 6 ? If you always want line 6 to follow line 3 just throw out lines 4 and 5. For all other cases you need control flow directives, like "if", "else", "case", "when" etc. See http://www.ruby-doc.org/docs/ProgrammingRuby/html/tut_expressions.html#S4 Kind regards robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/