Is there a better way to implement for/while loop in perprocess function?
When I try to generate several numbered task in plantUML, I wroted a function to generate a task.
Then I need to call it many times.
With out native loop, I was forceed to implement it like this:
!function loop($time)
!if %not($time == 1)
!$step = 1
!$last = $time - $step
loop2($last)
!endif
round($time)
!endfunction
!function loop2($time)
loop($time)
!endfunction
I really hope loop can be native supported.
Like:
!function wh($time)
!while %not($time == 0)
round($time)
!$time = $time - 1
!endwhile
!endfunction