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,

Mike

-- 
mike / stok.co.uk                    |           The "`Stok' disclaimers" apply.
http://www.stok.co.uk/~mike/       |
GPG PGP Key 1024D/059913DA         | Fingerprint      0570 71CD 6790 7C28 3D60
stok / colltech.com (CT - work)      |                  75D2 9EC4 C1C0 0599 13DA