The Switch statement cardSwitch statement

Switch statement

Common

Rarity: Common

The most frequent rarity: most Wikipedia articles become Commons.

Rarity follows how well known the article is: its views on the French and English Wikipedia over a year, and the number of languages it exists in.

At a glance

Class
Notion
Domain
Science and technology
In collections
Nobody has pulled it yet.

What Wikipedia says

In computer programming, a switch statement is a selection control flow mechanism that changes execution control based on the value of an expression (i.e. evaluation of a variable). A switch statement is similar to an if statement but instead of branching only on true or false, it branches on any number of values.

Excerpt from the Wikipedia article “Switch statement”, under the CC BY-SA 4.0 license. Read the article on Wikipedia

Image: Viktor Vasnetsov, Public domain, via Wikimedia Commons.

Open free boosters and add Switch statement to your collection.

Play for free

Related cards