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.

Is it possible to put text on an arrow from the "if" node to the "else if" node?

0 votes
The new activity diagram syntax allows for something like:

 

if (condition one?) then (yes1)

    :activity1;

elseif (condition two?) then (yes2)

    :activity2;

else (no)

    :activity3;

endif

 

The "yes1" text is on the arrow from condition one to activity one.

The "yes2" text is on the arrow from condition two to activity two.

I'm looking for a way to add some text (eg: "no1") leading from the "condition one" node to the "condition two" node. Is this possible?
asked Jun 28 by anonymous

1 Answer

0 votes

Hi, 

it is possible to do this way (before the elseif statement): 

if (condition one?) then (yes1)

    :activity1;

(no1) elseif (condition two?) then (yes2)

    :activity2;

else (no)

    :activity3;

endif

Is it what you are looking for ?

answered Aug 5 by laverdure (210 points)
Support This Project Offer 250 Mo! Follow PlantUML on Twitter
...