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 > > Hope this helps, It does indeed. I thought it would be simple. Thanks. > Mike -- Tim Pettman Network Engineer VBCnet GB Ltd tjp / vbc.net www.vbc.net tel. +44 (0) 117 929 1316 fax. +44 (0) 117 927 2015