1. Computing & Technology

Switch

From , former About.com Guide

See More About:
Definition: The switch statement specifies a number of cases that a variable can evaluate to and one or more statements to be run if the switch evaluates to a particular case. If the switch statement does not evaluate to a particular case value then the statements following the default label will be run. Switch is a reserved word and cannot be used for anything other than declaring a switch statement.
Examples:
switch (myvar) {
Related Searches case value switch statement

©2012 About.com. All rights reserved.

A part of The New York Times Company.