Monday, March 24th, 2008
The SWITCH Statement
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.
Tags: case, decision making, javascript, switch





