On Wed, 25 Apr 2001  23:59:31 +0900, Tim Pettman wrote:
> On Wed, 25 Apr 2001, Mike Stok wrote:
> 
> > On Wed, 25 Apr 2001, Tim Pettman wrote:
> > 
> > > Hi there,
> > >
> > > This is probably really simple, but how do I use an or on the right hand
> > > side of an if?
> > >
> > > What I would like to do is this:
> > >
> > > if n == 3 or 5
> > >  puts "true"
> > > else
> > >  puts "false"
> > > end
> > 
> > if n ==3 or n == 5

the following idiom can be usefull too, especially with larger sets:

if [3, 5, 42].include? n
	...
end

	Michel