From: Josh Cheek Date: 2011-01-30T12:22:19+09:00 Subject: Re: i need help with if statements --001485f85a1a56692a049b07ce25 Content-Type: text/plain; charset=ISO-8859-1 On Sat, Jan 29, 2011 at 8:38 PM, Dan L. wrote: > i am having trouble with if statements. > i want the program to check if the answer is yes or no then do the > process related to the answer but i cannot do it > > any help ? > > -- > Posted via http://www.ruby-forum.com/. > > if answer == 'yes' # yes processing code elsif answer == 'no' # no processing code else # what to do when answer is neither yes nor no end --001485f85a1a56692a049b07ce25--