On 3/28/07, Maloy kanti debnath <[EMAIL PROTECTED]> wrote: > hi, > > IS there any function which is simlar like VB 6.0 GOTO so > that we can say > if condition > goto line 8 > else > goto line 20 > end
GOTO is not a very good way to do such things. Try using methods: ################################### conditional = "yes" #def/end is one method def method_eight puts "this is not line 8" end def method_twenty puts "this is not line 20" end if conditional == "yes" method_eight #invoke method_eight above conditional = "no" end if conditional == "no" method_twenty end ############################################### _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general