Hi
Please compare the below two examples, each utilizing one of the two conditional syntaxes cited in the manual.
It would appear the second syntax (example 2) is not rendered correctly?
You are right.
Because only `if` allow this form (with `equal` or `is`), and not yet `elseif`!
That is now a wanted request...
See the corresponding code here:
And:
Currently, a possible workaround is to don't use equals on elseif, as:
@startuml :New Action; if (a?) equals (1) then :Action 4; elseif (a?) then (2) :Action 5; else (no) :Action 6; endif stop @enduml
Regards.
(--------)
This is now fixed in V1.2023.0
Thanks for the report!
Works perfectly. Thank you!
Yes, for your case you can use `switch`, as:
@startuml start switch (a?) case ( 1 ) :Action 4; case ( 2) :Action 5; case ( no ) :Action 6; endswitch stop @enduml
Answered here https://forum.plantuml.net/17196/activity-diagram-using-if-is-syntax-in-elseif?show=17200#c17200