From: Robert Klemme Date: 2006-08-09T01:30:09+09:00 Subject: Re: Goto in Ruby? On 08.08.2006 18:18, aidy wrote: > Robert wrote > >> Use a CASE statement for this. >> >> case line.upcase >> when 'ADDRESS:' >> $ie.text_field(:name, 'Address1').set(line) >> $ie.text_field(:name, 'Address2').set(line) >> $ie.text_field(:name, 'Address3').set(line) >> $ie.text_field(:name, 'Address4').set(line) >> $ie.text_field(:name, 'Address5').set(line) >> $ie.text_field(:name, 'Address6').set(line) >> $ie.text_field(:name, 'Address7').set(line) > > Thanks for the advice, but this will only enter the word 'address' in 7 > different boxes, while I need to iterate through the arrray. You probably should state more clearly what you need. Then we can come up with better suggestions. robert