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/.