Home/Blog/v2.0 Practical Guide

Scope & Variable Tracking: Understanding Parameters, Branches, and Loops

2026-11-306 min read

How Context Scope Works

Scope resolution walks up to the edited node: parameters apply globally inside the function, branch assignments become visible after the branch block, and for-loop counters stay confined to their loop body.

Live Example (DIN 66261)

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

rabattBerechnen(betrag, istMitglied)Deklaration und Initialisierung: rabatt als Dezimalzahl = 0Zuweisung: rabatt = betrag *0.1Zuweisung: rabatt = 0istMitglied == wahrwahrfalschRückgabe: betrag - rabatt

More Articles