Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SHELL

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
8+8 =