From: Rosina Bignall Date: 2006-07-23T12:12:09+09:00 Subject: Re: Showing part of an array.... Dumaiu wrote: > I think this example is asking for the ternary op. > > colors = %w( black red white yellow green ) > colors[0,3].join(', ') + (colors.length > 3 ? ' ...' : '') Thank you! Thank you! Thank you! Yes, that's exactly what it needs! Cheers, Rosina -- Posted via http://www.ruby-forum.com/.