From: "Sylvain Abélard" Date: 2007-03-22T04:06:48+09:00 Subject: Re: Exiting in the middle of the program > 7. if name == 'John' > 8. puts 'Nice name!' > 9. end > 10. > 11. if name == 'Mary' > 12. puts 'What a beautiful name!' > 13. end Wow, I really recommend you look around to the "case" statement. And the 'star' (*) operator (this one is tricky : it can either make an array from separated vars or splat an existing array into several separate stuff). http://www.zenspider.com/Languages/Ruby/QuickRef.html case name when "John", "Johnny" ; puts "nice name" when * girls_name ; puts "beautiful name" when "exit" ; exit 0 else puts name end > if name == 'exit' > exit > end Yes. But why didn't you try ? You'd have seen by yourself :) -- Sylvain Abelard, Railer Rubyist. Epita MTI 2008.