Guest User

Untitled

a guest
Aug 10th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. function prompt_user_input(message, defualt_value)
  2. print(message)
  3. input = readline()
  4. value_entered =(input.len > 0) && (input.len < 128)
  5. return value_entered ? input : defualt_value
  6. end
  7.  
  8. function prompt_user_cont()
  9. return contains(==, lowercase(prompt_user_input("We still doin' dis? [Y/n]: ", "y")), 'y')
  10. end
  11.  
  12. username = prompt_user_input("What yo' name is? ", "NotSoCleverPunk")
  13. password = prompt_user_input("And yo' password? ", "StupidBlankPassword")
  14. while(prompt_user_cont()) end
Add Comment
Please, Sign In to add comment