On Sat, Jan 29, 2011 at 8:38 PM, Dan L. <danissoepiclike / gmail.com> 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