From: aidy Date: 2006-08-09T01:20:06+09:00 Subject: Re: Goto in Ruby? 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. Cheers aidy