G
Gábor SEBESTYÉN
I have this very simple example:
a =3D 1
b =3D nil
puts a.nil?
puts b.nil?
puts "ok" unless a.nil? and b.nil?
Running it results these:
false
true
ok
Why the third answer is ok? Unless false and true =3D> false ..
Clue?
G=E1bor
a =3D 1
b =3D nil
puts a.nil?
puts b.nil?
puts "ok" unless a.nil? and b.nil?
Running it results these:
false
true
ok
Why the third answer is ok? Unless false and true =3D> false ..
Clue?
G=E1bor