@startuml !$data={ "colors": ["red", "yellow", "blue", "green", "white"], "shapes": ["circle", "rectangle", "square", "triangle"] } title Array support exemple !procedure $foo($arg) :procedure start; !while $arg!=0 !$i=2 #palegreen:arg=$arg; !while $i!=0 'it would be nice here to be able able 'indexing the arrays like so $colors[$arg], $shapes[$i] 'with json (zero-based array), you can have: $data.colors[$arg] and $data.shapes[$i]... #$data.colors[$arg]:arg=$arg and i=$i / $data.colors[$arg] - $data.shapes[$i]; !$i = $i - 1 !endwhile !$arg = $arg - 1 !endwhile :procedure end; !endprocedure start $foo(2) end @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
🎉 Discover the future PlantUML Web Editor! 🚀
PNG
SVG
ASCII Art