Activity-beta : Labels on arrows with IF structure

0 votes
asked May 22, 2015 in Wanted features by MAV (460 points)
edited May 22, 2015 by MAV

Hi guys,

Is it possible to put the labels at the if and not at the endif?

I would like to use this syntax to be able to write easily multi-lines labels.

Thank you !

@startuml

start

if()

-> True;

else

-> False;

endif

stop

@enduml

result : here

1 Answer

0 votes
answered Jun 1, 2015 by bond007 (400 points)

Have you tried this approach?:

if(result) then (successful
result multiline label)
 :Do something;
else (error)
 :Throw an error;
 stop
endif
...