From: Paul Lutus Date: 2006-11-17T16:15:08+09:00 Subject: Re: case vs using if question Scott Comboni wrote: / ... > or am i better using > if component == 'PC': puts "Postcard" > elsif component == 'DC': puts "Decal" It depends to some extent on how many comparisons there are. IMHO you should consider using the case ... when construction for more than a few comparisons. Also, look at case ... when ... then sample code online for the correct syntax to use. -- Paul Lutus http://www.arachnoid.com