From: Jonathon Hartoon Date: 2008-02-12T23:20:46+09:00 Subject: Re: Beginner help - txt dungeon > >> def case_example(input) > >> case input > >> when "one" > >> 1 > >> when "two" > >> 2 > >> else > ?> "unknown" > >> end > >> end > => nil > >> case_example "one" > => 1 > >> case_example "two" > => 2 > >> case_example "three" > => "unknown" > > Hope that helps. > > James Edward Gray II That is rather simple. Maybe I will leave the array being used as a hash for another time. At the moments the funtionality remain intact. Thx again for the help. -- Posted via http://www.ruby-forum.com/.