How can I target the same node?

0 votes
asked Mar 4, 2021 in Question / help by notalentgeek (140 points)

What I have:

What I want to have (with the ending arrow I didn't put there):

My codes:

@startuml
start
:Request received;
if (Inputted query string for Product UUIDs ( ""uuids"" ) are valid\nand valid UUIDs have length larger than 0?) then (Yes)
    if (Inputted query string ""customer_type"" is valid?) then (Yes)
        :Something else;
    else (No)
        :Return error for the request;
        end
    endif
else (No)
    :Return error for the request;
    end
endif
@enduml

1 Answer

0 votes
answered Mar 4, 2021 by Martin (8,360 points)

You can use elseif to chain if statements, and the outputs merge.

In theory you should then be able to use "!pragma useVerticalIf on" to make it more vertical, but it generates a strange side arrow, which must be a bug.

Alternatively you can use a slightly clunky goto beta feature:

Hope this provides some ideas.

...