From: "Carlo E. Prelz" Date: 2012-11-27T23:29:52+09:00 Subject: Re: error in if Subject: error in if Date: Tue 27 Nov 12 11:22:50PM +0900 Sorry for the delay! Quoting Mohammed Yasin Rahman (Mohammed-Yasin.Rahman@lip6.fr): > WHat's the error here? > > a = [1,2,3] > > if 1 in a > puts "exists" > end > > It gives: test.rb:5: syntax error, unexpected keyword_end, expecting $end "if 1 in a" is not valid Ruby syntax. A working line #3 could be if(a.include?(1)) Carlo -- * Se la Strada e la sua Virtu' non fossero state messe da parte, * K * Carlo E. Prelz - fluido@fluido.as che bisogno ci sarebbe * di parlare tanto di amore e di rettitudine? (Chuang-Tzu)