0
Gentlemen, I need to know which operator to use in c:if of Javascript when I want to make a decision between themselves, for example, I need a background of a Div turned red when it is between the date x and y, I would like to know which is the operator "BETWEEN"follows an excerpt from my code.
<c:if test ="${realizadoVN dfim <> dtini && ${realizadoVN <metaVN}">
<div class="container">
<div class="marca" ><h1>VN</h1></div>
<div class="meta"style="font-size: 25px;">META: <fmt:formatNumber value = "${VN.rows[0].META}" type="currency"/></div>
<div class="rel" style= "background-color:red; color:white; font-size:30px;">ACUMULADO <br><br><fmt:formatNumber value = "${realizadoVN}" type="currency"/><br><h1> <c:out value="${VN.rows[0].ACUMULADO}"/>%</h1></br></div>
</div>
</c:if>
I don’t know what language you’re using, but it wouldn’t be
dini <= realizado && realizado <= dfim
?– KaduAmaral
Kadu, and the goal that would be the second condition would enter where in this case? because I have two conditions in the same decision loop. <c:if test ="${realizadoVN dfim <> dtini && ${realizadoVN <metaVN}">
– Gabriel Paixão Justino
How is everything and
&&
, Just put it later without any problems. Just so I understand, SVN is your date?– KaduAmaral
The date is being represented by the variable DTINI and DTFIN ( Start Date and End Date) the realized VN is the variable that receives the value of my billing. What I would actually like is a function within Javascript where I could know the last day of the month and with that subtract minus 7, if you know would be welcome, because this solution that I am trying to apply at this moment I realized directly by SQL and I am trying to bring to my application, so the initial question.
– Gabriel Paixão Justino