Scopes
Branch: If
An if branchC
C#
Java
JavaScript
Lua
Python
SCSS
Branch: If elif else
An if-elif-else branch. The removal range for the if branch should include the trailing `else` keyword.C
C#
Java
JavaScript
Lua
Python
SCSS
Branch: If else
An if-else branchC
C#
Java
JavaScript
Lua
Python
SCSS
Branch: Loop
A for / while loop branch. For most languages this is not supported, but eg in Python you can have an else branch for a loop.Python
Branch: Switch case
A case/default branch in a switch statementC
C#
Java
JavaScript
Python
Branch: Ternary
A branch in a ternary expressionC
C#
Java
JavaScript
Python
Branch: Try
A try/catch/finally branchC++
C#
Java
JavaScript
Python
Branch: If (iteration)
Iteration scope for if/elif/else branches: the if-else statement.C
C#
Java
JavaScript
Lua
Python
SCSS
Branch: Loop (iteration)
Iteration scope for loop branches: the loop statement.Python
Branch: Switch case (iteration)
Iteration scope for switch branches: the switch statement body.C
C#
Java
JavaScript
Python
Branch: Ternary (iteration)
Iteration scope for ternary expression branches: the ternary expression.C
C#
Java
JavaScript
Python
Branch: Try (iteration)
Iteration scope for try/catch/finally branches: the try-catch statement.C++
C#
Java
JavaScript
Python