Apply useVerticalIf command for a specific conditional structure and not not Globally

0 votes
asked Apr 19 in Wanted features by kasra (200 points)

Hello,

it seems that the command !pragma useVerticalIf on   is applied globally in the whole diagram

If I have two conditional structures with several tests on each is it possible to use 

!pragma useVerticalIf on  for the first one 

and disable the useVerticalIf command for the second?

@startuml

!pragma useVerticalIf on

start

if (condition Athen (yes)

  :Text 1;

elseif (condition Bthen (yes)

  :Text 2;

  stop

elseif (condition Cthen (yes)

  :Text 3;

elseif (condition Dthen (yes)

      if (condition Athen (yes)

      :Text 1;

    elseif (condition Bthen (yes)

      :Text 2;

      stop

    elseif (condition Cthen (yes)

      :Text 3;

    elseif (condition Dthen (yes)

      :Text 4;

    else (nothing)

      :Text else;

    endif

else (nothing)

  :Text else;

endif

stop

the case above is a nested conditional structure.

This would be really useful for expressing nested cases concisely.

Thanks

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.
...