puts not outputting to console

Highlighted
New Member
9 0 0

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
Highlighted
New Member
9 0 0

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

0 Likes