Switch Case
Syntax:switch (VARIABLE) {
case CONDITION : STATEMENT
break
case CONDITION : STATEMENT
break
case CONDITION : STATEMENT
break
default : STATEMENT
}
This has a similar function as the If condition - but it is more useful in situations when there is many possible values for the variable. Switch will evaluate one of several statements, depending on the value of a given variable. If no given value matches the variable, the default statement is executed.

Comments
suppose i have seven check boxes named mon tue----sun of a week
and i need a switch case which checks for the o/p and executes the perticular case even if a person clicks two boxes named mon and wed it should check them and process the statements
how can i do this
you can mail the answer to me
any help
a, strong, em, b, i, code, pre, pandbrallowed. Other tags will be shown as code(< will become <). Urls, Line breaks will be auto-formated.