Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var typ,action;
  2.  
  3. if(typ=='typ1'){
  4.     action = 1;
  5. }else if (typ =='typ2'){
  6.     action = 2;
  7. }else if (typ =='typ3'){
  8.     action = 3;
  9. }else if (typ =='typ4'){
  10.     action = 5;
  11. }
  12.  
  13.  
  14. switch(action){
  15.     case 1:
  16.         func1();
  17.     break;
  18.     case 2:
  19.         func2();
  20.     break;
  21.  
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement