I'm trying to draw an arrow connecting two elements like this:
Even when I use -| command.
\draw [arrow, very thick] (a1) -- (a2);
\draw [arrow] (a2) -- (a3);
\draw [arrow] (a3) -- (a4);
\draw [arrow] (a4) -- (a5);
\draw [arrow] (a5) -- (a6);
\draw [arrow] (a6) -| node[anchor=west] {No} (a2);
\draw [arrow] (a6) -- node[anchor=west] {Yes} (a7);
\draw [arrow] (a7) -- (a8);
When i compile this code
this is what i get an arrow that goes straight from 2nd decision to ACT2 :



2ndis made this is quite simple. – daleif Nov 23 '23 at 14:09arrowor(a2)is going to be, or even replicate your code from guessing. As a test try compiling your snippet in a fresh file and provide the missing parts. Also you can easily shrink down your code to a few relevant elements, as not all ACTs are really needed ... – MS-SPO Nov 23 '23 at 14:47\draw[arrow] (a6) -- +(0.5,0) |- node[right] {No} (a2);instead of\draw[arrow] (a6) -| node[anchor=west] {No} (a2);. (Or maybe use a smaller value than0.5.) For better help, you need to provide a full and compilable minimal working example (MWE). – Jasper Habicht Nov 24 '23 at 17:39