From: Braxton Beyer Date: 2009-11-01T06:10:18+09:00 Subject: how can i perform a one line case statement on a number I want to be able to do something like this: 1000.case when 100 then "string1" when 110 then "string2" else "Unknown" end I have an app that allows an admin to enter a filter that is ruby code. The filter code is then applied directly to a variable. Is there a way to apply a case statement such as the one above -- Posted via http://www.ruby-forum.com/.