Posts Tagged ‘switch’

The SWITCH Statement

Monday, March 24th, 2008

The if statement isn’t the only way that javaScript can make decisions. While an if statement can decide between true and false, the switch statement can test a single field for any number of different values and provide a different processing path for each.

The SWITCH Statement