From: Chris Carter Date: 2007-06-28T01:14:30+09:00 Subject: Re: missing kEND for if statement, but not for a case statement? On 6/27/07, Nathan Taylor-Hoover wrote: > begin > loopbreak = false > while loopbreak != true > str = gets > if str =~ /help|HELP/ > puts help > else if str =~ /quit|QUIT/ > loopbreak = true > else if str =~ /options|OPTIONS/ > puts options > else > puts "{#str} is not a valid command" > end > end > > ensure > somehousecleaning() > end > The "else if" construct is elsif in ruby. doing else if will start an actual new if statement that needs to be ended. -- Chris Carter concentrationstudios.com brynmawrcs.com