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 +=?

Thanks
-- 
Posted via http://www.ruby-forum.com/.