Forum: Ruby Nested IF statements

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Angelo (Guest)
on 2006-05-12 02:05
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
This topic is locked and can not be replied to.