How in the new syntax for activity diagram I can refer to the activity in the other place of uml code? (like with "as" in the old syntax). Otherwise I will need to nest multiple if statements which is not easy to read.
e.g.
@startuml
start
:Activity1;
if (check parameters) then (true)
:Parse file;
if(check cond1) then (true)
activity2:
if(check cond2) then (true)
activity3:
endif
endif
else (false -> exit with error code)
stop
endif
stop
@enduml