From: Edmond Kachale Date: 2010-11-10T22:26:36+09:00 Subject: "puts, if and unless" VS "nil" --20cf303b421567a6ab0494b2ce91 Content-Type: text/plain; charset=ISO-8859-1 Rubysters, I was sharing with some friends how to use if and unless. I wrote this statement: *puts nil if nil* and I got =>nil. (Which implies nothing was printed.) When I wrote: *puts nil unless nil* I got: nil => nil Which implies that puts output nil. My question is what is in *"nil"* that makes "*puts*" print "*nil"*? Or is there any explanation to back this behaviour? --- Edmond Software Developer | Baobab Health Trust (http://www.baobabhealth.org/) | Malawi Cell: +265 999 465 137 | +265 881 234 717 *"Leading the Improvement of Health through Information and Communication Technology in the Developing World" The **Creed* of *Baobab Health * --20cf303b421567a6ab0494b2ce91--