from rails console:
development environment (Rails 3.2.9)
1.9.2p320 :001 > defined?(kol)
=> nil
1.9.2p320 :002 > if 1==2
1.9.2p320 :003?> kol = 'mess'
1.9.2p320 :004?> end
=> nil
1.9.2p320 :005 > defined?(kol)
=> "local-variable"
1.9.2p320 :006 > kol
=> nil
my question is, why the does variable kol
get instantiated to nil
even though the condition (1==2) fails?