Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

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
Mega Guru