Home/Blog/Guide & Examples

Branches (If/Else) & Switch-Case in Structograms

2026-11-225 min read

1. Binary Branch (If / Else)

A binary branch places the boolean condition inside the top triangle, with the true path on the left and the false path on the right. If there is no Else behavior, the false branch remains empty.

2. Multi-Way Switch-Case

Whenever one expression is checked against three or more discrete values, a Switch-Case block keeps columns balanced and easy to read. Always include a “default” (otherwise) column for unexpected inputs.

Live Example (DIN 66261)

Rendered directly in DIN 66261 — click to open and edit in the workspace.

tarifAuswahl(tarif)preis = 9.99preis = 14.99preis = 24.99tarif"S""M"sonstAusgabe: preis

More Articles