尝试:
{% if inven.quantityInventory < 10 %} <td class="color-green-primary">{{inven.quantityInventory}}</span></td> {% else %} <td class="color-red-primary">{{inven.quantityInventory}}</span></td> {% endif %}