New activity syntax: how can I get two arrows going to a single activity?

+2 votes
asked Sep 11, 2014 in Wanted features by anonymous

The new syntax for activities looks cool, however, I can't find an example of two arrows going to a single activity.

Basically, how do I translate this to the new syntax:

(*)  --> "check input"
If "input is verbose" then
--> [Yes] "turn on verbosity"
--> "run command"
--> "run command"
If you could add an example on the website that would be more than sufficient. Thanks!
commented Dec 10, 2014 by Human (120 points)
Is this actually a bug instead of a wanted feature, since this works properly in the old version?
commented Dec 12, 2014 by anonymous
I guess so. When I asked the question, I thought it just be a case of not having an example on the website.

1 Answer

0 votes
answered Dec 12, 2014 by plantuml (240,420 points)

You can have:

:check input;
if (input is verbose) then (yes)
:turn on verbosity;
:run command;


But I guess that you need is more related to some kind of goto.