1 2 3 4 5 6 7 8
puts "hello world" array.each do |elem| if elem > 1 puts "foo" else puts "bar" end end