From: Carlo Teubner Date: 2002-06-10T21:59:35+09:00 Subject: Re: Ternary Operator > Is there some sort of ternary operator in Ruby like the one in C++? Yup. You don't need it though, because in Ruby, the if statement returns a value, eg: greaterThanFive = if x > 5 then "yes" else "no" end The ternary operator is mainly good for obfuscation, eg: class Fixnum; def _?;??end end puts ??._?? ??:?: *g,d&r* -Carlo