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/.