Template:Computer Programming/Control/2

From Wikibooks, open books for an open world
Jump to: navigation, search

[edit] case

Often it is necessary to compare one specific variable against several constant expressions. For this kind of conditional expression the case statement exists. For example:

Personal tools
Namespaces
Variants
Actions
Navigation
Community
Toolbox
Sister projects