Is there a way to put the condition of the if block in the diamond?

+1 vote
asked Oct 11, 2022 in Question / help by geebos (120 points)

Is there a way to put the condition of the if block in the diamond?

like this picture:

1 Answer

0 votes
answered Oct 11, 2022 by The-Lu (64,960 points)

Hello G., and all,

For that, you must to use new Activity diagram, as:

@startuml
skinparam conditionStyle InsideDiamond

start
:Test;
if (Condition) then (Yes)
  :Yes;
else (No)
  :No;
endif
stop
@enduml

Enjoy,
Regards,
Th.

...