Hi, Am Montag, 11. Jun 2007, 16:00:06 +0900 schrieb Robert Klemme: > I would not promote this for regular use as there is also the much more > efficient other form of "case" which can be utilized to solve this in a > more "natural" (?) and also more efficient manner: > > case > when a.size == 3 > ... > when a[0] == "foo" > ... > else > ... > end I use this construction quite often in SQL select statements. There, I don't have an if-elsif. In Ruby I use if-elsif indenting the first expression by three more spaces. if a.size == 3 then ... elsif a[0] == "foo" then ... else ... end Bertram -- Bertram Scharpf Stuttgart, Deutschland/Germany http://www.bertram-scharpf.de