can any one help how to use less than operator in jelly script.

ranjithkumark19
Tera Expert

Can any one help how to use less(<) operator in jelly script.

My problem is

<j:if test="${prob.percent_complete >=50}">

    <svg height="100" width="100">

<circle cx="50" cy="50" r="5" stroke="black" stroke-width="1" fill="yellow"/>

</svg>

</j:if>

 

it is working fine. While implementing (less than)

<j:if test="${prob.percent_complete <50}">

    <svg height="100" width="100">

<circle cx="50" cy="50" r="5" stroke="black" stroke-width="1" fill="yellow"/>

</svg>

</j:if>

 

it is not working.

6 REPLIES 6

Ravish Shetty
Tera Guru

or you can reverse it like this: <j:if test="${50 > prob.percent_complete }">


sumeet_n
Kilo Guru