From: Alex Young Date: 2007-08-08T22:45:50+09:00 Subject: Re: case statement Shai Rosenfeld wrote: > hi guys, > > was wondering the syntax of how to do this: > > case [1,2,3,4] > > when 1: 'this is what i want' > when 11: 'not result' > when 15: 'no good' > > end > > ((i.e, whatever value is included in the array)) > ...how do i do this? Does the Array#include? method do what you need? Perhaps a more fleshed-out example might help? -- Alex