6 Replies Latest reply on Jan 12, 2019 1:00 AM by Feike Visser

    Can we use % (modulo) in Sightly

    cnur24357457 Level 1

      Can we use %(modulo) in Sightly

      I want to use below condition in sightly, how can I use it

      <ul data-sly-list="${properties.size}">

      <li  data-sly-test="${itemList.count % 3 ==0}"> Test </li>

      </ul>

      I know above code don't work. How to achieve above condition in sightly.