mercredi 18 septembre 2019

Does JETT support multiple IF statements?

I am using JETT to transform some Excel sheet documents. I need to apply conditional formatting inside .

This is my code inside spreadsheet document cell:

<jt:forEach items="${getValues()}" var="item" indexVar="index" copyRight="true">
   <jt:if test="${index%5 == 0}">
      <jt:style style="border-left: medium">
         ${index}, ${item}
      </jt:style>
   </jt:if>
</jt:forEach>

This does well, loops trought values and inserting value/formatting into every 5th cell. However I need to format for example every 10th cell in other way. So basically another IF statement. But when i tried to put another IF statement after first one, nothing gets inserted/formatted.

Any way to use multiple IF statements in one jt:forEach loop?

Aucun commentaire:

Enregistrer un commentaire