Hi,
I am struggling to make the diamond in activity diagram to start a branch from lower side of the diamond in the code below.
What I wish is to make the YES branch to start from lower side of the diamond and the NO branch to start from the right side of the diamond. Is it possible?
@startuml
!pragma useVerticalIf on
start
group GROUP_1
if (CONDITION_1 is TRUE?) then (YES)
!$s=\
"bla1"
:$s;
else (NO)
group GROUP_2
if (CONDITION_2 is TRUE?) then (YES)
!$s=\
"bla2"
:$s;
else
if (CONDITION_3 is TRUE?) then (YES)
!$s=\
"bla3"
:$s;
else
!$s=\
"bla4"
:$s;
endif
endif
endgroup
endif
endgroup
stop
@enduml
In the example from the manual it works...:
@startuml
!pragma useVerticalIf on
start
if (condition A) then (yes)
:Text 1;
elseif (condition B) then (yes)
:Text 2;
stop
elseif (condition C) then (yes)
:Text 3;
elseif (condition D) then (yes)
:Text 4;
else (nothing)
:Text else;
endif
stop
@enduml