1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
\tikzset{
process/.style={
rectangle,
minimum width=2.5cm, minimum height=1cm,
draw,
text centered
},
% Decision (diamond)
decision/.style={
diamond, aspect=2,
minimum width=2.5cm, minimum height=1cm,
draw,
text centered
},
% Arrow style
arrow/.style={
thick, ->, >=Stealth
}
}
\begin{tikzpicture}
\node (start) {};
\node[decision, below=of start] (decision) {\textbf{\textcolor{magenta}{Bedingung}}};
\node[process, below=of decision] (process1) {\textbf{\textcolor{orange}{Anweisungen1}}};
\node[process, right=of process1] (process2) {\textbf{\textcolor{orange}{Anweisungen2}}};
\node[below=1.2cm of process1] (end) {};
% Arrows
\draw[arrow] (start) -- (decision);
\draw[arrow] (decision) -- node[right] {Wahr} (process1);
% Decision branch
\draw[arrow] (process1) -- (end);
\draw[arrow] (decision) -- node[above] {Falsch} ($(decision.east) + (1cm, 0)$) -| (process2);
\draw[arrow] (process2.south) -- ($(process2.south) + (0, -0.4cm)$) |- ($(process1) - (0, 1.1cm)$);
\end{tikzpicture}
|