Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- switch(text) {
- case "lol":
- // text is lol
- break;
- case "test":
- //text is test
- break;
- //can be expanded indefinately
- default:
- //none of the other conditions was met
- break;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement