{%- if ing.ingredient is defined and ing.ingredient != "" -%} {%- if ing.amounts is defined and ing.amounts != "" and ing.amounts.blocks is defined and ing.amounts.blocks != "" -%} {%- if ing.amounts.blocks != [] -%} {%- set ingredient_counter = loop.index -%} {%- for amt in ing.amounts.blocks -%} {%- if loop.index == prt_loop -%} {%- if amt.amount is defined and amt.amount != "" and amt.amount != 0 and amt.amount != '0' -%} {{- '\n ' -}}