From: Avdi Grimm Date: 2008-06-06T04:14:50+09:00 Subject: Re: why cannot i put conditions in when clause On Thu, Jun 5, 2008 at 1:40 PM, Joel VanderWerf wrote: > You can do this: > > case > when a==0 > when a>0 > end First of all: huh. Learn something new about Ruby (almost) every day. That said - why would you do this rather than an if/elsif? I'm genuinely curious. E.g. if a == 0 then ... elsif a>0 then ... end -- Avdi Home: http://avdi.org Developer Blog: http://avdi.org/devblog/ Twitter: http://twitter.com/avdi Journal: http://avdi.livejournal.com