switch Statement

JavaScript Editor Ajax toolkit     Ajax website 



Main Page

Enables the execution of one or more statements when a specified expression's value matches a label.

switch (expression) {
      case label1 :
      [statementlist1]
      [break;]
 [ ...
 [ case labelN :
      [statementlistN]
      [break;] ] ]
 [ default :
      [statementlistDefault]]
} 

Expand imageArguments

Expand imageRemarks

Expand imageExample

Expand imageRequirements

Expand imageSee Also



JavaScript Editor Ajax toolkit     Ajax website


©