Updated on 2023-10-31 GMT+08:00

Branch Statements

Syntax

Figure 1 shows the syntax diagram.

Figure 1 case_when::=

Figure 2 shows the syntax diagram for when_clause.

Figure 2 when_clause::=

Parameter description:

  • case_expression: specifies the variable or expression.
  • when_expression: specifies the constant or conditional expression.
  • statement: specifies the statement to execute.

Examples