Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

switch statement

int myValue;

switch myValue{
  case 0:
    doSomething();
  case 1:
  	doSomethingElse();
  default: //else
    break; //Or call another function
}
Source by www.codeexampler.com #
 
PREVIOUS NEXT
Tagged: #switch #statement
ADD COMMENT
Topic
Name
4+5 =