Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var typ,action;
- if(typ=='typ1'){
- action = 1;
- }else if (typ =='typ2'){
- action = 2;
- }else if (typ =='typ3'){
- action = 3;
- }else if (typ =='typ4'){
- action = 5;
- }
- switch(action){
- case 1:
- func1();
- break;
- case 2:
- func2();
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement