java - Initialize an array via Loop in Velocity -
how can convert 1 foreach loop in velocity?
#set($stararray5 = []) #set($stararray4 = []) #set($stararray3 = []) #set($stararray2 = []) #set($stararray1 = [])
i tried 1 returns error.
#foreach($i in [5..1]) #set($stararray$i = []) #end
any appreciated.
Comments
Post a Comment