Welcome to PlantUML Q&A, where you can ask questions and receive answers from other members of the community.

You can also submit new features request and vote for them.

Label on upward edge in while loop

0 votes

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
asked Jul 28, 2016 in Wanted features by anonymous
closed Sep 12, 2016

1 Answer

0 votes

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 ?

answered Jul 28, 2016 by plantuml (125,190 points)
Yes, this is exactly what I expected. Thank you.
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...