0

I want to know if there is a special keyword as alternative to > in QWEB report.
I found gt (maps to >) but it shows the following error message:

QWebException: invalid syntax (, line 1)

Code:

<t t-if="total gt 0">
    <t t-esc="total"/>
</t>
Kenly
  • 24,317
  • 7
  • 44
  • 60

1 Answers1

1

You need to use html codes or in this situation you can use the named codes, too.

> = &gt; = &#62;
< = &lt; = &#60;
CZoellner
  • 13,553
  • 3
  • 25
  • 38
  • I was hoping a solution without html coding. – Kenly Sep 08 '16 at 19:56
  • 1
    what's the problem with this solution? QWeb is a templating engine, mostly used to generate html. You have to use xml with it, and < and > are key syntax markers, so you can't use them here :-/ – CZoellner Sep 08 '16 at 21:10