我不确定哪里出了问题。我相信我遵守了这里的每一条规则。请指出我是否遗漏了什么。我很感激你的帮助。
(% if tot86|floatformat > 0 %)
<div class="row">
<div class="col-8 text-start fs2 border-bottom border-end border-start border-dark"><b>Income</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot86|floatformat}}</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot86|floatformat}}</b></div>
</div>
<div class="row">
<div class="col-8 text-start fs2 border-bottom border-end border-start border-dark"><b>AMOUNT PAYABLE</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot90|floatformat}}</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot91|floatformat}}</b></div>
</div>
{% endif %}
您在使用(
代替{
和)
代替}
的if
语句中出现拼写错误。因此将(
更改为{
,将)
更改为}
{% if tot86|floatformat > 0 %}
<div class="row">
<div class="col-8 text-start fs2 border-bottom border-end border-start border-dark"><b>Income</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot86|floatformat}}</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot86|floatformat}}</b></div>
</div>
<div class="row">
<div class="col-8 text-start fs2 border-bottom border-end border-start border-dark"><b>AMOUNT PAYABLE</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot90|floatformat}}</b></div>
<div class="col-2 text-center fs2 border-bottom border-end border-dark"><b>{{tot91|floatformat}}</b></div>
</div>
{% endif %}