Please provide a way to add a label on upward edge of while loops

0 votes
asked Jul 28, 2016 in Closed feature request by anonymous
reopened Jul 7 by Anthony-Gaudino

The while syntax allows to add labels on all edges except on the upward one.

For example, 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".

Please provide a way to add a label on upward edge of while loops.

1 Answer

0 votes
answered Jul 28, 2016 by plantuml (187,940 points)
selected Jul 7 by Anthony-Gaudino
 
Best answer

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.
...