On 9/9/07, Luis Enrique <mail41t-now / yahoo.com> wrote:
> I am learning Ruby.
> This is my problem.
> d=0
> if some == 1..90
> a=1
> b=4
> d++
> end
>
> I get a syntax error.
>
> syntax error, unexpected kEND
>
> if I take the d++ then it is ok.
>
> how should I use the ++ or +=?
>

Ruby does not have pre or post-increment/decrement operators.
d++ should be:  d += 1

Also, this probably doesn't do what you want:
"if some == 1..90"
I suspect you want to say:  if (1..90).include?(something)