Hello D.,
For that you can use function, as:
@startuml
!function $myfunc()
!$n = 4
!$row = 0
!$res = ""
!while $row < $n
!$column = 0
!while $column < $n
!$res = $res + "| "+ $row + "," + $column
!$column = $column + 1
!endwhile
!$res = $res + %newline()
!$row = $row + 1
!endwhile
!return $res
!end function
salt
{#
$myfunc()
}
@enduml
- But what are your mean goal?
Just to create an 2D array?
Enjoy,
Regards,
Th.