From: Alfonso Caponi Date: 2009-12-22T22:32:50+09:00 Subject: newbie: if is not null else... Hi forum, how can I replace this PHP syntax with Ruby? $x = (isset($x) and !empty($x)) ? $x : '-'; I would like assign a default value if $x is Null. Thank you very much, Al -- Posted via http://www.ruby-forum.com/.