From: "Scott H." Date: 2013-06-12T06:10:40+09:00 Subject: Re: Loop with range question unknown wrote in post #1112056: > Am 11.06.2013 18:04, schrieb Scott H.: >> actual => 1 2 3 4 5 6 7 8 9 10 >> (so I thought by wrapping the range in a “()” it would convert to >> 3,4,5,6 and then be able to jump over these integers on output) >> ================ > > This might help: > > 2.0.0-p195 :018 > (3..6).include? 5 > => true > 2.0.0-p195 :019 > (3..6).include? 10 > => false > > Note that a Range and an Integer can never be equal. You state a range can never be equal to an integer. Does that mean i == so is that why (3..6) is not working for me? Would it make any difference that I'm using 1.9.3-p392? Did i mention I'm new to ruby and programming :) -- Posted via http://www.ruby-forum.com/.