From: Stefano Crocco Date: 2010-10-07T03:25:28+09:00 Subject: Re: Error when using class variables with operators 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