puts not outputting to console

jeremy16
Tourist
9 0 1

I can't get puts to work. What am I doing wrong here? https://help.shopify.com/manual/apps/apps-by-shopify/script-editor/limitations

 

Input.cart.line_items.each do |item|
  product = item.variant.product
  
  puts product.id
  
end

Output.cart = Input.cart

0 Likes
jeremy16
Tourist
9 0 1

nevermind. apparantly "run script" behaves differently than "parsing" the script

0 Likes