Hi, I am new to PlantUML and UML in general, I am learning at UNI now and I like PlantUML much more than the program they want us to use there, but I have one problem, because I made an activity diagram in the new (beta) syntax, and i got something like this.
@startuml
start
:Administrer øvelser;
repeat
if (er der øvelser) then (nej)
:Tilføj øvelse;
else (ja)
:Vælg handling;
if ()
-> [Tilføj valgt];
:Tilføj øvelse;
else ()
-> [Slet valgt];
:Slet øvelse;
endif
endif
:Øvelse ændret;
repeat while (Afslut) is (Nej)
-> Ja;
stop
@enduml
My teacher was not very happy with this because the one called "Tilføj øvelse" is the same but it repeats twice.
I tried making it in the old syntax and i got something like this:
@startuml
(*) -> "Administrer øvelser"
if "er der øvelser" then
-->[ja] "Vælg handling"
if "" then
->[tilføj valgt] "Tilføj øvelse"
else
-->[fjern valgt] "Fjern øvelse"
endif
else
-->[nej] "Tilføj øvelse"
endif
"Tilføj øvelse" -> "Øvelse ændret"
"Fjern øvelse" -> "Øvelse ændret"
if "Afslut" then
-->[nej] "Administrer øvelser"
else
-->[ja] (*)
endif
@enduml
It just looks super messy, and there was a lot of fuzz to get the arrows to point in the right direction.
So my question is:
Is it possible to make something like the first diagram where we have two conditions but where Tilføj øvelse only appears one time.