Nested IF statements

I'm very new to Ruby and am desperately trying to figure out what seems
to be a fairly simple script. Is there something special I need to know
in regards to IF statements with Ruby that may differ from most other
languages?

The structure of the script looks like the following:

for

    if

        if

        else

        end

    elsif

    end

    if

    end

end

It's bugging at the first and only elsif. (syntax error, unexpected
kELSIF, expecting kEND)

Thanks for any help,
Angelo

···

--
Posted via http://www.ruby-forum.com/.