Hi All, I am somewhat new to Ruby coding and programming altogether, 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) Can someone give me some advice so that shit code runs? # The CSV file has product_id, name, price , then type....if this helps at all. thanks -- Posted via http://www.ruby-forum.com/.