Hi all, I’m trying to setup a maco which puts an if statement in front of all my table row variables to ensure they don’t print the label if they’re blank. So I have a lot of instances of the following
{%- if row.stock -%}
<b> Stock: </b> {{ row.stock or '' }} <br>
{%- endif -%}
For each of the variables in my row.* list I want to call the macro to “insert” the if and the endif.