From: Josselin Date: 2007-01-15T20:55:08+09:00 Subject: Re: cannot return negative value ? On 2007-01-15 12:41:09 +0100, "Farrel Lifson" said: > On 15/01/07, Josselin wrote: >> I got the following error : >> >> parse error, unexpected tUMINUS_NUM >> >> userCredential.flagged? ? return -1 : return 1 >> >> what's wrong ? >> >> I tried also >> >> userCredential.flagged? ? return (-1) : return 1 >> >> same problem..... > > This seems to work: > > return userCredentials.flagged? ? -1 : 1 > > Farrel hanks a lot first time I was using this kind of return... ;-))