Template:Computer Programming/Control/2

caseEdit

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:

Last modified on 1 June 2009, at 17:22