From: sto.mar@... Date: 2013-06-12T01:51:45+09:00 Subject: Re: Loop with range question Am 11.06.2013 18:27, schrieb sto.mar@web.de: > This might help: > > 2.0.0-p195 :018 > (3..6).include? 5 > => true > 2.0.0-p195 :019 > (3..6).include? 10 > => false PS. In fact, it would also be possible to use the === operator (which is also used in case statements), like this: 2.0.0-p195 :020 > (3..6) === 5 => true But I wouldn't advise to do that. The range needs to be on the left side, or it won't work. (Which might lead to bugs that would be difficult to locate.) --