aboutsummaryrefslogtreecommitdiff
path: root/Info/9/3/Planet/algorithmik/if/else-flowchart.tikz
diff options
context:
space:
mode:
authorFlorian Fischer <florian.fischer@muhq.space>2026-04-27 17:01:07 +0200
committerFlorian Fischer <florian.fischer@muhq.space>2026-04-27 17:01:07 +0200
commit45fd6810d6edac6539a5e74963245f20fbf8e2e0 (patch)
treeee7b534d7d3045cf29bac66ff71087f9a9779590 /Info/9/3/Planet/algorithmik/if/else-flowchart.tikz
parent6f9f18324234d62c16e657a003c905171092ca4d (diff)
downloadunterricht-45fd6810d6edac6539a5e74963245f20fbf8e2e0.tar.gz
unterricht-45fd6810d6edac6539a5e74963245f20fbf8e2e0.zip
add if section for the planet
Diffstat (limited to 'Info/9/3/Planet/algorithmik/if/else-flowchart.tikz')
-rw-r--r--Info/9/3/Planet/algorithmik/if/else-flowchart.tikz34
1 files changed, 34 insertions, 0 deletions
diff --git a/Info/9/3/Planet/algorithmik/if/else-flowchart.tikz b/Info/9/3/Planet/algorithmik/if/else-flowchart.tikz
new file mode 100644
index 00000000..af04d501
--- /dev/null
+++ b/Info/9/3/Planet/algorithmik/if/else-flowchart.tikz
@@ -0,0 +1,34 @@
+\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] (process) {\textbf{\textcolor{orange}{Anweisungen}}};
+ \node[below=1.2cm of process] (end) {};
+
+ % Arrows
+ \draw[arrow] (start) -- (decision);
+ \draw[arrow] (decision) -- node[right] {Falsch} (process);
+
+ % Decision branch
+ \draw[arrow] (decision) -- node[above] {Wahr} ($(decision.east) + (1cm, 0)$) -- ($(decision.east) + (1cm, -3.4cm)$) |- ($(process) - (0, 1.1cm)$);
+ \draw[arrow] (process) -- (end);
+\end{tikzpicture}