From: Glenn Jackman Date: 2010-04-22T22:25:14+09:00 Subject: Re: If-Else within a loop going through array elements... At 2010-04-22 09:12AM, "Saeed Bhuta" wrote: [... the code you pasted ...] > else if i == 2 [... the error you show ...] > riverservicescraper.rb:56: syntax error, unexpected kELSE, expecting '}' > else if i == 2 { > ^ Is the code you're editing different from the code you're running? Did you forget to save in your editor? -- Glenn Jackman Write a wise saying and your name will live forever. -- Anonymous