From: Robert Dober Date: 2007-05-05T05:40:08+09:00 Subject: Re: Condition avant la boucle On 5/4/07, Bolo wrote: > I am apologize, I wrote my question in French > > My problem is why i did something like > > ************************ > array = {:bolo => "toto" , :bolo => "toto" } > array.each {|key,value| rtCriteria = "#{key} = '#{value}'" } > if rtCriteria.blank? > puts "rtCriteria is ok" > else > puts "rtCriteria is not "ok > end > ************** > I have always > rtCriteria is not ok > > the if method was called before the each method > > It's more clear ? > > > -- You see things; and you say Why? But I dream things that never were; and I say Why not? -- George Bernard Shaw