Skip to main content

One doc tagged with "switch directive"

View All Tags

The "Switch" Statement

What are the advantages of using a Switch statement? A switch statement can replace multiple if checks, it is more descriptive, and easier to read.