for loop in thymeleaf

前端 未结 4 1770
伪装坚强ぢ
伪装坚强ぢ 2021-02-18 19:10

How can I do the following (java):

for(int i = 0; i < 81 ; i+=20){
   //Should loop through 5 times!
}

in Thymeleaf?

I\'ve tried thi

4条回答
  •  礼貌的吻别
    2021-02-18 19:15

    The 1st value is the beginning of count, the 2nd is the maximum value and the 3rd is the incremental value

    ${#numbers.sequence( 1, 4, 1)}
    

提交回复
热议问题