Skip to main content

Case Statement

The case statement is another form of selector statement similar to the If statement.

a : INT := 2;
b : INT;

CASE a OF
1:
;
// This block will be executed as a = 2
2:
b := 1;

// Range expressions can be used to match a range of values
3..6:
;

// This provides a default branch.
ELSE:
;
END_CASE;