How to combine Horizontal and Vertical IF structure ?

+1 vote
asked Sep 30, 2021 in Bug by kasra (300 points)

Hello,

I would like to combine horizontal and vertical IF structure.

Something like that :

@startuml
start
if (condition A) then (yes)
!pragma useVerticalIf on
  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
!pragma useVerticalIf off
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

result.

As you can see, Everything is Horizontal. I would like the nested conditional structure being Vertical.

Is it Possible to do that?

Thanks,

Kasra

1 Answer

0 votes
answered Oct 28, 2021 by kasra (300 points)
hi,

no updates about this topic ?

thanks !
...