> puts "enter Product ID Number" > product_id = gets.chomp > CSV.foreach("c:\plantproducts.csv") do |row| > if product_id == row[0] > do (price * qty) end end puts "Enter Qty) qty = gets.chomp # the price is given in the csv file when I run the code I get an error "syntax error, unexpected keyword_do_block do (qty * price) -- Posted via http://www.ruby-forum.com/.