On Wednesday 06 October 2010, Paul Roche wrote:
> |Hi. When I use class variables with operators I get the following error
> |message........
> |
> | undefined method `>' for nil:NilClass
> |
> |
> |here's a piece of code that gives this error.....
> |
> |if @@target1 <  @@target2
> |   @@status = true

It means that @@target1 is nil. Try

  p @@target1

just before the if and see what it shows.

Stefano