Skip to main content

Branch

Scopes

Branch: If

An if branch
C
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 branch
C
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 statement
C
C#
Java
JavaScript
Python

Branch: Ternary

A branch in a ternary expression
C
C#
Java
JavaScript
Python

Branch: Try

A try/catch/finally branch
C++
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