Skip to main content

One doc tagged with "switch-statement"

View all tags

Switch Statements and Expression

The switch statement is an alternative to the if-else if-else chain for when you have multiple conditions to check against a single value.