try &&

On 03/06/2007, at 12:27 AM, Ari Brown wrote:

> Hey all,
> my first ruby submission is coming up, and i'm pretty psyched - I'm  
> even cron-ing my email submission to try to be the first one in :-D
>
> But I have a problem. In  my code, I want to use case - when  
> statements in it to reduce line wastage. BUT I get an error when I  
> try to use this sample code:
>
> case s
> when s + 1 == y and s - 1 == q
>
> anyhelp?
>
> also, modulus is x % y, right?
>
> thanks,
> ---------------------------------------------------------------|
> ~Ari
> "I don't suffer from insanity. I enjoy every minute of it"  
> --1337est man alive
>
>
>
>