How make a diamond arrow to start a branch from lower side of the diamond?

0 votes
asked Aug 11, 2022 in Question / help by Gil

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

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...