is it possible to put "else block" behind endif witouth "else" in activity-diagram?

0 votes
asked Sep 26, 2020 in Question / help by hanshengsui

@startuml

start

if( condition then (yes)

    :return false;

    stop

endif

:doSomething1;

:doSomething2;

....

@enduml

As the above code shows, the execution of the code in the if block will cause the subsequent code to not be executed at all. Therefore, the statement should be written between else and endif, I think it can be placed directly outside endif. But in actual operation, I found that the sentence written in this way is not displayed. Is there any way?

Thanks a lot

1 Answer

0 votes
answered Sep 28, 2020 by The-Lu (63,920 points)

Hello H.,

With the last version (v1.2020.17, and other), if we test you code, we observe:


[See on PlantUML server]

It seems to be good? not?

If that can help,
Regards,
Th.

...