closed Label on upward edge in while loop

0 votes
asked Jul 28, 2016 in Wanted features by anonymous
closed Sep 12, 2016

The "while" syntax allows to add labels on all edges expect on the upward one

For exemple, in the following loop, I didn't find a way to add a label to the edge going from "task" to "test" :

while (test) is (value1)
  :task;
endwhile (value2)

A possible extension would be:

while (test) is (value1) loop (value3)
  :task;
endwhile (value2)

adding a label "value3" to the edge going back from "task" up to "test".

closed with the note: See answer

1 Answer

0 votes
answered Jul 28, 2016 by plantuml (134,570 points)

It's not possible with official release.

However, with last beta https://dl.dropboxusercontent.com/u/13064071/plantuml.jar

You can have:

@startuml
while (test)
  :task;
  ->label;
endwhile
@enduml


Is this what you are expecting ?

commented Jul 28, 2016 by anonymous
Yes, this is exactly what I expected. Thank you.
...