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 > What about puts (n == 3 || n == 5) BTW, puts (n == 3 or n == 5) givs me a parse error with the puts in front. ========================================================= Jim Freeze jim / freeze.org --------------------------------------------------------- No comment at this time. http://www.freeze.org =========================================================