Hi,
It seems that always the last !pragma useVertical is taking into account as a global definition for an activity diagram.
@startuml
!procedure $conditionalStructure()
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
!endprocedure
start
!pragma useVerticalIf on
$conditionalStructure()
!pragma useVerticalIf off
$conditionalStructure()
stop
@enduml
it would be useful to have part of a diagram with a vertical conditional structure and another part having a horizontal conditional structure.
We could even have nested conditional structures with different orientations.
It permits us to have a very concise way of expressing complex structure.
If I have N conditions and each of them has M sub-conditions the diagram today is either too long or too large.
Thanks!
Best Regards,
Kasra