Switch Statements

A switch statement tests whether an expression matches one of the several cases.

Syntax:

Example:

Output:

Salesforce Switch Statements

Example:

Output:

Salesforce Switch Statements

Example:

Output:

Salesforce Switch Statements

Pin It on Pinterest

Share This