@startuml !$foo = { "company": "Skynet", "employees" : [ {"name" : "alice", "salary": 100, "color" : "pink"}, {"name" : "bob", "salary": 50, "color" : ""}, {"name" : "carol", "salary": 50, "color": false}, {"name" : "dave", "salary": 50, "color" : null} ',{"name" : "eve", "salary": 50} ]} start !foreach $emp in $foo.employees !if $emp.color #$emp.color:The salary of $emp.name is $emp.salary (color: $emp.color); !else :The salary of $emp.name is $emp.salary (color: no color); !endif !endfor @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