Hi --

On Sat, 30 Oct 2004, Zach Dennis wrote:

> ># 2
> >if (a)
> >  block # 2
> >end
> >
> ># 6
> >if (not a.nil?)
> >  block # 6
> >end
> >
> #2 and #6 will always evaluate to the same result.

Almost always :-)

  irb(main):004:0> a = false
  irb(main):005:0> if (a); puts 2; end
  => nil
  irb(main):006:0> if (not a.nil?); puts 6; end
  6
  => nil


David

-- 
David A. Black
dblack / wobblini.net