Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if (text == "yes") {
- //do something
- } else if (text == "no") {
- //do something
- }
- and
- switch(text) {
- case "yes":
- //do something
- case "no":
- //do something
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement